This is a discussion on Sorting Persian/Farsi text within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Hi Apologies first - I am not a Persian/Farsi speaker, but I'm working on a project which involves managing ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi
Apologies first - I am not a Persian/Farsi speaker, but I'm working on a project which involves managing content in the language. Now my question: is there anyone out there who knows anything about sorting UTF-8 encoded Persian/Farsi text in PHP and MySql. Or more importantly, has got it working? From looking at the online manual, Mysql 4.1.1 looks like it should be able to do the work, tho there doesnt seem to be an officially supported set of collation files. There must be some out there though? Same with PHP - even though I setlocale to fa_IR.UTF-8, the sort order doesnt not seem to come out correctly. It seems to be to do with compiling in the right collation files - it would be great to avoid re-inventing too much of that particular wheel. Thanks in advance for any help or pointers -- Peter Cruickshank - me at cruickshank dot biz |