Re: XMLDocument.save("localfile.xml");

Martin Honnen <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xml
Organization Liberty Development
Message-ID <[email protected]>
Lucky wrote:

> but i was under the impression that using the IO write methods will only 
> produce an ANSI output? and that UTF-8 characters will not work??

I might be wrong but my understanding is that passing JavaScript strings 
  to some IO write methods is not capable of treating Unicode properly 
as those write methods might expect bytes and those JavaScript strings 
being sequences of Unicode characters get truncated that way.
The code however that I suggested simply passes the document node to an 
XMLSerializer where serialization is done to a stream, there is no 
JavaScript string passed to a write method expecting bytes that way.


-- 

	Martin Honnen
	http://JavaScript.FAQTs.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.