ID: 46835 Updated by: rricha...@php.net Reported By: kasparsj at gmail dot com -Status: Open +Status: Bogus Bug Type: DOM XML related PHP Version: 5.2.8 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 This is the behavior exhibited from libxml2 when outputting in HTML format Previous Comments: ------------------------------------------------------------------------ [2008-12-11 12:16:37] kasparsj at gmail dot com Description: ------------ DOMDocument->saveHTML replaces not only predefined entities, but also unicode letters, like Ä, Å¡, Ä. is this also as expected or a bug? this is related to: http://bugs.php.net/bug.php?id=37878 Reproduce code: --------------- $doc = new DOMDocument('1.0', 'UTF-8'); $doc->substituteEntities = false; $doc->appendChild($doc->createElement('p', 'Å¡aÄeÄ')); var_dump($doc->saveHTML()); Expected result: ---------------- <p>Å¡aÄeÄ</p> Actual result: -------------- <p>©šaēeā</p> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46835&edit=1