#34724 [Opn->Fbk]: Unexpected output
| From: | sniper@php.net | Date: | Tue, 04 Oct 2005 06:28:04 +0000 |
| Subject: | #34724 [Opn->Fbk]: Unexpected output | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-85967@lists.php.net to get a copy of this message | ||
ID: 34724
Updated by: sniper@php.net
Reported By: tv at net4you dot bg
-Status: Open
+Status: Feedback
Bug Type: Strings related
Operating System: Windows XP/Apache 2.0.54
PHP Version: 5.1.0RC1
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2005-10-04 08:22:51] tv at net4you dot bg
Description:
------------
i have problem with converting cyrillic string to lower. Sorry you need
to set page encoding to Windows-1251 to see the strings. Here is a
screenshot if you can`t see the screen:
http://www.net4you.bg/temp/tempimg.jpg
Reproduce code:
---------------
<?php
//The string in uc;
$string = 'ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÜÚÞß';
print "Actual uc string: $string<br>";
//Convert the string to lower
print "Result: ".(strtolower($string))."<br>";
//Should produce "àáâãäåæçèéêëìíîïðñòóôõö÷øùüúþÿ"
//Actual output "àáâãäåæçèéêëìíîïðñòóôõö×øùüúþß"
print 'Expected: àáâãäåæçèéêëìíîïðñòóôõö÷øùüúþÿ';
?>
Expected result:
----------------
àáâãäåæçèéêëìíîïðñòóôõö÷øùüúþÿ
Actual result:
--------------
àáâãäåæçèéêëìíîïðñòóôõö×øùüúþß
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34724&edit=1