Bug #55174 [Opn->Bgs]: htmlspecialchars buggy
Edit report at https://bugs.php.net/bug.php?id=55174&edit=1
ID: 55174
Updated by: cataphract@php.net
Reported by: development at dayside dot net
Summary: htmlspecialchars buggy
-Status: Open
+Status: Bogus
Type: Bug
Package: *General Issues
Operating System: winxp sp3
PHP Version: 5.4.0alpha1
Block user comment: N
Private report: N
New Comment:
The default encoding as of PHP 5.4 is UTF-8 (it was ISO-8859-1 before). Therefore, if your string is
in ISO-8859-1, you must specify the encoding.
Closing as bogus.
Previous Comments:
------------------------------------------------------------------------
[2011-07-11 07:05:33] development at dayside dot net
Description:
------------
when any string contains any char of these -> äöüÃ
and the string is processed with htmlspecialchars it results in an empty string...
Test script:
---------------
<?php
echo htmlspecialchars('Test123 äöüÃ');
?>
Actual result:
--------------
nothin...
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=55174&edit=1
Thread (6 messages)