Bug #63261 [NEW]: htmlentities and htmlspecialchars have problemens with german umlauts

From: Date: Thu, 11 Oct 2012 12:51:08 +0000
Subject: Bug #63261 [NEW]: htmlentities and htmlspecialchars have problemens with german umlauts
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-174021@lists.php.net to get a copy of this message
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

« previous php.bugs (#174021) next »