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: My shell encoding and my editor encodings are setted to latin1. This is also no utf8-encoding-problem. The error occurs after updating my server from 5.3.17 on 5.4.7. The php source codes still the same like before the update. Previous Comments: ------------------------------------------------------------------------ [2012-10-11 12:53:06] hartz at mobilecity dot de In PHP 5.3.x the expected result will be returned. After an update on 5.4.7 it works no more ------------------------------------------------------------------------ [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