Edit report at https://bugs.php.net/bug.php?id=63261&edit=1
ID: 63261 User updated by: hartz at mobilecity dot de Reported by: hartz at mobilecity dot de Summary: htmlentities and htmlspecialchars have problemens with german umlauts Status: Open Type: Bug Package: Output Control Operating System: Linux SLES 10 PHP Version: 5.4.7 Block user comment: N Private report: N New Comment: In PHP 5.3.x the expected result will be returned. After an update on 5.4.7 it works no more Previous Comments: ------------------------------------------------------------------------ [2012-10-11 12:51:08] hartz at mobilecity dot de 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 this bug report at https://bugs.php.net/bug.php?id=63261&edit=1