From: hartz at mobilecity dot de
Operating system: Linux SLES 10
PHP version: 5.4.7
Package: Output Control
Bug Type: Bug
Bug description:htmlentities and htmlspecialchars have problemens with german
umlauts
Description:
------------
Hi,
with the following line of code you can see the problem.
In PHP 5.4.7 the funtions htmlentities and htmlspecialchars didn't support
no more german umlauts. They returns an empty string.
Best regards,
Stephan
Test script:
---------------
echo "TEST:".
htmlentities('ÃÃÃäöüÃ')."|".htmlspecialchars('ÃÃÃäöüÃ')."|".'ÃÃÃäöüÃ';
Expected result:
----------------
TEST:
ÄÖÜäöüß|ÃÃÃäöüÃ|ÃÃÃäöüÃ
Actual result:
--------------
TEST: ||ÃÃÃäöüÃ
--
Edit bug report at https://bugs.php.net/bug.php?id=63261&edit=1
--
Try a snapshot (PHP 5.4):
https://bugs.php.net/fix.php?id=63261&r=trysnapshot54
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=63261&r=trysnapshot53
Try a snapshot (trunk):
https://bugs.php.net/fix.php?id=63261&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=63261&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=63261&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=63261&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=63261&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=63261&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=63261&r=support
Expected behavior: https://bugs.php.net/fix.php?id=63261&r=notwrong
Not enough info:
https://bugs.php.net/fix.php?id=63261&r=notenoughinfo
Submitted twice:
https://bugs.php.net/fix.php?id=63261&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=63261&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63261&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=63261&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=63261&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=63261&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=63261&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=63261&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=63261&r=mysqlcfg