ID:               50780
 User updated by:  hlegius at gmail dot com
 Reported By:      hlegius at gmail dot com
 Status:           Bogus
 Bug Type:         Strings related
 Operating System: Windows 7
 PHP Version:      5.2.12
 New Comment:

Yeah, I can, but it is a PHP bug, anyway ! In older versions - 5.2.6
this does not happen.


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

[2010-01-16 21:03:10] [email protected]

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

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

[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