[wp-trac] [WordPress Trac] #20772: remove_accents() improvements for Chinese pinyin permalinks
WordPress Trac
wp-trac at lists.automattic.com
Tue May 29 07:27:21 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 | Resolution:
Keywords: |
--------------------------+------------------------------
Comment (by bolo1988):
Replying to [ticket:20772 bolo1988]:
>
> {{{
>
> 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#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list