[wp-trac] [WordPress Trac] #20772: remove_accents() improvements for Chinese pinyin permalinks

WordPress Trac wp-trac at lists.automattic.com
Tue May 29 07:24:58 UTC 2012


#20772: remove_accents() improvements for Chinese pinyin permalinks
--------------------------+-----------------------------
 Reporter:  bolo1988      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  I18N          |    Version:  3.3.2
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 {{{
 echo str_replace(' ', '-', str_replace('.', '',
 sanitize_file_name(remove_accents(strtolower('Lǚcì')))));
 }}}
 the result:

 {{{
 lǚcì
 }}}

 and i found remove_accents() can't convert the following chars:
 ǎ -> a
 ǒ -> o
 ǚ -> v/u
 ǐ -> i
 ǔ -> u

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20772>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list