#19257 [Fbk->Opn]: strtolower & strtoupper does not work for UTF-8 strings

From: Date: Mon, 09 Sep 2002 16:28:46 +0000
Subject: #19257 [Fbk->Opn]: strtolower & strtoupper does not work for UTF-8 strings
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-18824@lists.php.net to get a copy of this message
ID: 19257 User updated by: gamid@isayev.net Reported By: gamid@isayev.net -Status: Feedback +Status: Open Bug Type: Strings related Operating System: Linux PHP Version: 4.2.2 New Comment: > I tried setting LANG/LC_ALL to that and it indeed > didn't work. When I set those to "en_US" it works just fine. What you mean "works just fine"? Did it convert 0xC39C ('Ü' in UTF-8 encoding) into 0xC3BC ('ü' in UTF-8 encoding)? Or 0xD0AF (Russian capital "ya" in UTF-8 encoding) into 0xD18F (Russian lowercase "ya" in UTF-8 encoding)? Previous Comments: ------------------------------------------------------------------------ [2002-09-09 10:45:05] sniper@php.net I didn't know UTF-8 is a locale.. I tried setting LANG/LC_ALL to that and it indeed didn't work. When I set those to "en_US" it works just fine. ------------------------------------------------------------------------ [2002-09-09 08:39:06] gamid@isayev.net > Exactly what distribution do you have? Mandrake 8.1 with following RPMs installed: locales-2.3.1.2-4mdk locales-en-2.3.1.2-4mdk locales-ru-2.3.1.2-4mdk locales-de-2.3.1.2-4mdk > How are LANG/LANGUAGE/LC_ALL etc. environment variables > set in your system (before starting Apache)..? All environment variables set to 'UTF-8'. > And please, try with the stock php.ini-dist too. Same result. BTW, in the php.ini-dist there should be a semi-colon instead of colon in the line 98: ": is doing." -> "; is doing." Could you tell me your settings so that I can try them out? ------------------------------------------------------------------------ [2002-09-07 14:20:53] sniper@php.net Exactly what distribution do you have? How are LANG/LANGUAGE/LC_ALL etc. environment variables set in your system (before starting Apache)..? And please, try with the stock php.ini-dist too. ------------------------------------------------------------------------ [2002-09-06 13:29:57] gamid@isayev.net BTW, here is my configuration: ./configure \ --with-apxs=/usr/sbin/apxs \ --enable-track-vars \ --enable-safe-mode \ --with-config-file-path=/etc/httpd \ --with-zlib \ --enable-magic-quotes \ --with-regex=system \ --without-mysql \ --without-xml \ --without-gd \ --with-pgsql=shared \ --with-imap \ --with-iconv \ --enable-mbstring \ --with-xml \ --with-kerberos php.ini has 'default_charset=utf-8'. ------------------------------------------------------------------------ [2002-09-06 13:27:36] gamid@isayev.net The functions do not work in PHP 4.2.3 and latest snapshot. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/19257 -- Edit this bug report at http://bugs.php.net/?id=19257&edit=1

« previous php.bugs (#18824) next »