ID:               50780
 Updated by:       [email protected]
 Reported By:      hlegius at gmail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Strings related
 Operating System: Windows 7
 PHP Version:      5.2.12
 New Comment:

Yea, you're supposed to use mbstring for this stuff. Or iconv. PHP 6
will have support for unicode.


Previous Comments:
------------------------------------------------------------------------

[2010-01-16 20:56:00] hlegius at gmail dot com

Description:
------------
strtolower encoding problem in UTF-8 mode at Windows 7.

Reproduce code:
---------------
<?php

echo strtolower("HÉLIO"); // returns: h&#65533;lio (error)
echo strtoupper("hélio"); // returns HéLIO (ok)

?>

Expected result:
----------------
<?php
// expected results

echo strtolower("HÉLIO"); // returns: hÉlio
echo strtoupper("hélio"); // returns HéLIO

?>

Actual result:
--------------
<?php

echo strtolower("HÉLIO"); // returns: h&#65533;lio (error)
echo strtoupper("hélio"); // returns HéLIO (ok)

?>


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=50780&edit=1

Reply via email to