From: tony at marston-home dot demon dot co dot uk Operating system: Windows XP PHP version: 4.3.2 PHP Bug Type: DOM XML related Bug description: create_text_node() does not handle special characters
Description: ------------ I have a field with the value "Cote d'Ivoire" (where the letter 'o' is actually 'o circumflex') which is not being deal with correctly by $doc->create_text_node(). If I pass the text through htmlentities() beforehand what appears in the XML output is "Côte d'Ivoire" instead of "Côte d'Ivoire". If I do not use htmlentities() on the value the output is "C�'Ivoire" (which is totally corrupt) instead of "Côte d'Ivoire" (which is what I expect). A similar fault exists with all the other special charcters I have tried, such as 'c cedila' etc. Expected result: ---------------- If my input is "Co(circumflex)te d'Ivoire" I expect the output to be "Côte d'Ivoire" Actual result: -------------- Instead of "Côte d'Ivoire" I am getting "C�'Ivoire" -- Edit bug report at http://bugs.php.net/?id=24934&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24934&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24934&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=24934&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24934&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24934&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24934&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24934&r=support Expected behavior: http://bugs.php.net/fix.php?id=24934&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24934&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24934&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24934&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24934&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24934&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24934&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24934&r=gnused