[wp-trac] [WordPress Trac] #24661: remove_accents is not removing combining accents
WordPress Trac
noreply at wordpress.org
Thu Nov 28 20:41:26 UTC 2013
#24661: remove_accents is not removing combining accents
----------------------------------+--------------------
Reporter: NumidWasNotAvailable | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.8
Component: Formatting | Version: 1.2.1
Severity: normal | Resolution:
Keywords: has-patch commit |
----------------------------------+--------------------
Comment (by p_enrique):
Here are my test results of strings using combined accents:
{{{
remove_accents( 'Cáo nâu lanh lẹ nhảy qua người lười biếng. Do bạch kim
rất quý, sẽ để lắp vô xương' );
--> string(82) "Cao nau lanh le nhay qua nguoi luoi bieng. Do bach kim
rat quy, se de lap vo xuong"
remove_accents( 'Příliš žluťoučký kůň úpěl ďábelské kódy. Pójdźże, kiń tę
chmurność w głąb flaszy! Päťtýždňové vĺčatá nervózne štekajú na môjho
ďatľa v tŕní.' );
--> string(140) "Prilis zlutoucky kun upel dabelske kody. Pojdzze, kin te
chmurnosc w glab flaszy! Pattyzdnove vlcata nervozne stekaju na mojho
datla v trni."
remove_accents( 'Les naïfs ægithales hâtifs pondant à noël où il
gèle sont sûrs d'être déçus en voyant leurs drôles d'œufs abîmés.'
);
--> string(115) "Les naifs aegithales hatifs pondant a noel ou il gele
sont surs d'etre decus en voyant leurs droles d'oeufs abimes."
remove_accents( 'a᷄ (a + combining macron-acute). +⃟ (plus with enclosing
diamond). a︠e︡ (ae with a combining ligature)' );
--> string(98) "a (a + combining macron-acute). + (plus with enclosing
diamond). ae (ae with a combining ligature)"
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24661#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list