closes #250, figure out proper text encodings for import/export
MODS uses the encoding as specified in the <?xml tag, or else UTF-8 RIS uses IBM850, since the spec says "IBM Extended Character Set" and it's the only code page Mozilla supports. (should I do this? or just use unicode?) MARC uses UTF-8, since I don't think there's any way to get full MARC-8 support, and UTF-8 is now the preferred encoding anyway
This commit is contained in:
parent
cec35d7566
commit
045780d9ac
3 changed files with 175 additions and 56 deletions
|
@ -321,7 +321,7 @@ var Scholar_File_Interface = new function() {
|
|||
// create UTF-8 output stream
|
||||
var os = Components.classes["@mozilla.org/intl/converter-output-stream;1"].
|
||||
createInstance(Components.interfaces.nsIConverterOutputStream);
|
||||
os.init(fStream, "UTF-8", 0, "?");
|
||||
os.init(fStream, "UTF-8", 0, "?".charCodeAt(0));
|
||||
|
||||
os.writeString(html);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue