ID: 47368 Updated by: rricha...@php.net Reported By: christian dot ubu at gmail dot com -Status: Open +Status: Bogus Bug Type: XML Writer Operating System: CentOS release 5.2 (Final) PHP Version: 5.2CVS-2009-02-12 (CVS) 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 certain characters get written as character references within attribute values. That happens to one of them. Also make sure your encodings are correct because when run within UTF-8 env, the output is: <test testé="testé"/> which is correct Previous Comments: ------------------------------------------------------------------------ [2009-02-12 12:32:22] christian dot ubu at gmail dot com Description: ------------ XMLWriter::writeAttribute() doesn't display the value of the attribute with accented characters. Reproduce code: --------------- <?php $w = new XMLWriter(); $w->openURI('php://output'); $w->startElement('test'); $w->writeAttribute('testé', 'testé'); $w->endElement(); $w->outputMemory(); ?> Expected result: ---------------- <test testé="testé"/> Actual result: -------------- <test testé="test逅 Y"/> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=47368&edit=1