ID: 25883 Updated by: [EMAIL PROTECTED] Reported By: thomas at haeber dot de -Status: Open +Status: Bogus Bug Type: Strings related Operating System: SuSE Linux 8.2 (2.4.20) PHP Version: 4.3.1 New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Whenever possible PHP will prefer html entities over &#[number]; Previous Comments: ------------------------------------------------------------------------ [2003-10-15 10:21:11] thomas at haeber dot de Description: ------------ Hi guys, I used the htmlentities-function for converting values of different Languages to UTF-Code - see example 1. But PHP doesn't convert these accent-letters to UTF-8-Code. Furthermore I've realized that PHP doesn't converts the �-Symbol to ° but to ° - see example 2. Reproduce code: --------------- // example 1: $value = "LA R�CR�"; // with accent-letters of french language $value = htmlentities($value, ENT_QUOTES, "UTF-8"); echo $value; // Output: LA R�CR� (not LA RÉCRÉ) // example 2: $value = "13�"; $value = htmlentities($value, ENT_QUOTES, "UTF-8"); echo $value; // OUTPUT: 13° (not 13°) Expected result: ---------------- LA R�CR� 13° Actual result: -------------- htmlentities (UTF-8) converts � wrongly to °. htmlentities doesn't convert french accent-letters. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25883&edit=1
