write "?" if a character cannot be converted to UTF-8 (although i'm not sure how this would ever happen)

This commit is contained in:
Simon Kornblith 2006-08-15 01:09:06 +00:00
parent 52fe187328
commit 37a6684546

View File

@ -256,7 +256,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, "?");
os.writeString(html);