tchwork / utf8

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

No support for Arabic, Farsi, .. languages #20

Closed nlemsieh closed 10 years ago

nlemsieh commented 10 years ago

There is no support for Arabic, Farsi, .. languages , I hope it will be in the next updates. Thanks

CMCDragonkai commented 10 years ago

What type of support are you looking at?

nlemsieh commented 10 years ago

I want to create a slugs which supports Arabic and Farsi languages

nicolas-grekas commented 10 years ago

We currently don't have any feature that is language specific (well, turkish is a very particular exception, because of their i with or without dot). I know that u::toAscii() is used for creating slugs, but that is really a feature of iconv. Did you try setting your locale to fa_IR.utf8 or ar.utf8 (be sure you've installed the locale on your OS, see locale -a or stackoverflow). Otherwise, you'll need to do yourself some transliterations with intl...

nlemsieh commented 10 years ago

Well, I'm using Laravel 4 in my project, and I just know that it uses Patchwork-UTF8 to convert utf-8 character into ascii code.