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

Lucky <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xml
Message-ID <[email protected]>
Martin Honnen wrote:
> 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.
> 
> 
great thanks, will give it some tries.
thanks for the response(s)

the while components/interfaces is a new twist for me, i'm familiar w/ 
ms scripting IO's primarily, and they support [XMLDOM].save("file.xml");
within the ActiveX control, so it's never had to be exposed/written by 
myself that way.
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.