ID:               43740
 Updated by:       [EMAIL PROTECTED]
 Reported By:      heurika at gmail dot com
-Status:           No Feedback
+Status:           Bogus
 Bug Type:         *Unicode Issues
 Operating System: openSuse 10.1
 PHP Version:      5.2.5
 New Comment:

See bug #43896



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

[2008-01-03 19:36:43] [EMAIL PROTECTED]

Works fine for me:

[EMAIL PROTECTED]:~$ php
<?php
$test = ' Das für $ <>';
echo trim(htmlspecialchars($test, ENT_QUOTES, "UTF-8"));
?>
Das für $ &lt;&gt;

[EMAIL PROTECTED]:~$ php -v
PHP 5.2.5RC2-dev (cli) (built: Oct 31 2007 11:42:16) (DEBUG)


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

[2008-01-03 19:29:25] heurika at gmail dot com

Description:
------------
PHP 5.2.5 cannot convert german special-chars like äöü$ with UTF-8.
It worked fine on PHP 5.2.4.

Reproduce code:
---------------
<?php
$test = ' Das für $ <>';
echo trim(htmlspecialchars($test, ENT_QUOTES, "UTF-8"));
?>

Expected result:
----------------
Das für $ &lt;&gt;

Actual result:
--------------
(empty output)


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


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

Reply via email to