tchwork / utf8

Portable and performant UTF-8, Unicode and Grapheme Clusters for PHP
Apache License 2.0
627 stars 50 forks source link

Utf8::toAscii and Greek characters! #13

Closed nikosv closed 10 years ago

nikosv commented 10 years ago

Correct me if i am wrong but i looks like tha the toAscii() functions doesn't work with Greek Characters.

nicolas-grekas commented 10 years ago

toAscii relies on iconv() //TRANSLIT feature, which itselfs relies on the current locale. Did you try on Ubuntu (they have a good iconv implementation) with a greek locale in utf8 mode? Otherwise, the answer is yes, and you should consider http://fr2.php.net/manual/fr/class.transliterator.php