try to convert the string before your save. For example, var out = Components.classes["@mozilla.org/network/file-output-stream; 1"].createInstance(Components.interfaces.nsIFileOutputStream); var converter = Components.classes["@mozilla.org/intl/ scriptableunicodeconverter"].createInstance(Components.interfaces.nsIScriptableUnicodeConverter); converter.charset = 'UTF-8'; var convSource = converter.ConvertFromUnicode(content); out.init(file,0x20|0x02,00004,null); out.write(convSource,convSource.length); out.flush(); out.close();
On Jan 3, 10:54 pm, Andr Sv <[email protected]> wrote: > Hello I has read file with jQuery.twFile.load from FireFox 8 but > russian words seems bad in UTF-8 "Ð¡Ñ‚Ð¸Ñ Ð»Ð" and jQuery.twFile.save > save russian words as "?@@?@?@". What I do wrong? -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/tiddlywikidev?hl=en.
