#28153 [Com]: Unable to add encoding to XML Declaration

From: Date: Wed, 12 May 2004 10:25:41 +0000
Subject: #28153 [Com]: Unable to add encoding to XML Declaration
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-59526@lists.php.net to get a copy of this message
ID: 28153 Comment by: pio at op dot pl Reported By: silvein at php dot x256 dot com Status: Wont fix Bug Type: DOM XML related Operating System: Linux 2.4.25_pre7 SMP PHP Version: 4.3.6 New Comment: a ja mysle ze nie warto tak myslec --------------------------------------------------- http://www.nirvana-shop.com/ref.php?id=5409fdd38c18f5 Previous Comments: ------------------------------------------------------------------------ [2004-05-07 14:46:26] rrichards@php.net This is not going to be added to domxml. You either need to use the domxml_open_xxx functions and specify the encoding there or pass the encoding when dumping the data like: $doc->dump_mem(TRUE, "ISO-8859-1"); Since encoding isnt needed until output, you should probably just pass the encoding in the dump functions during output. ------------------------------------------------------------------------ [2004-04-26 10:51:06] silvein at php dot x256 dot com When using domxml_new_doc() the only allowed argument is the "version" attribute for the XML declaration. I am unable to find a way to add an "encoding" attribute. ------------------------------------------------------------------------ [2004-04-26 10:40:47] silvein at php dot x256 dot com Description: ------------ When using domxml_new_doc() the only allowed argument is the "varsion" attribute for the XML declaration. I am unable to find a way to add an "encoding" attribute. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=28153&edit=1

« previous php.bugs (#59526) next »