> That might work for Ehsan, but it sadly wouldn't save much effort for
> us since PHP doesn't do Persian UTF-8 collation (that I've been able
> to get working anyway), or provide access to strxfrm()
>
> :-(
>
> - which is why MySql seemed the least bad option.

Hmmm, if you've compiled PHP with glibc, I suppose you could simply do the
following (code not tested):

<?php
 setlocale( 'fa_IR.utf8' );
 $result = strcoll( $str1, $str2 );
?>

And yes, PHP doesn't provide access to strxfrm, but I think it's trivial to
write a PHP extension which provides that function.

-------------
Ehsan Akhgari

Farda Technology (http://www.farda-tech.com/)

[ Email: [EMAIL PROTECTED] ]
[ WWW: http://www.beginthread.com/Ehsan ]



_______________________________________________
PersianComputing mailing list
[EMAIL PROTECTED]
http://lists.sharif.edu/mailman/listinfo/persiancomputing

Reply via email to