Marek Lewczuk wrote:


I need to download text file (UTF-8 charset) using XMLHttpRequest (I need XMLHttpRequest because I need both async and sync connection). I have a problem with writing the result of responseText into the file - some characters (like "Å" etc) are replaced by "D".

I guess the issue then is not with responseText but how you write that text to a file, the method
<http://www.xulplanet.com/references/xpcomref/ifaces/nsIOutputStream.html#method_write>
is not really suitable to allow a script to write anything outside of ASCII to a file I think.
How do you try to write to a file?



--

        Martin Honnen
        http://JavaScript.FAQTs.com/
_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to