ID: 29955 Comment by: mustafa at deu dot edu dot tr Reported By: jan at horde dot org Status: Analyzed Bug Type: mbstring related Operating System: Linux PHP Version: 4CVS-2004-09-02 (stable) New Comment:
I get the same results like jan. I need to get UTF-8 output for consuming a web service and I configured my php 5.0.4 with --enable-mbstring=all parameter (on linux that has been set with Turkish locale) I see that mbstring extension has limited language support in source code. (German, English, Japanese, Korean, Russian, Chinese) Is there a way to add our (Turkish) language to source code? Any references about this extension's source? Previous Comments: ------------------------------------------------------------------------ [2005-02-22 11:10:06] [EMAIL PROTECTED] It turned out this is because mbstring doesn't take the locale into consideration. ------------------------------------------------------------------------ [2005-02-21 20:51:07] jan at horde dot org No, this didn't change anything. ------------------------------------------------------------------------ [2005-02-21 11:02:02] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip ------------------------------------------------------------------------ [2004-09-02 17:15:42] jan at horde dot org Description: ------------ In ISO-8859-9 (Turkish) the uppercase letter of "i" is a dotted uppercase "I", the lowercase letter of "I" is a dotless "i". But mb_strtolower() und mb_strtoupper() simply return the ASCII uppercase or lowercase counterparts. You get the correct result with: setlocale(LC_ALL, 'tr_TR'); echo strtoupper('i'); echo strtolower('I'); But the wrong results with: echo mb_strtoupper('i', 'iso-8859-9'); echo mb_strtolower('I', 'iso-8859-9'); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=29955&edit=1