From 37a6684546bb4911d442789d05b4bb0769477dcf Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Tue, 15 Aug 2006 01:09:06 +0000 Subject: [PATCH] write "?" if a character cannot be converted to UTF-8 (although i'm not sure how this would ever happen) --- chrome/chromeFiles/content/scholar/fileInterface.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/chromeFiles/content/scholar/fileInterface.js b/chrome/chromeFiles/content/scholar/fileInterface.js index 3ddd6c65f..44832ae2f 100644 --- a/chrome/chromeFiles/content/scholar/fileInterface.js +++ b/chrome/chromeFiles/content/scholar/fileInterface.js @@ -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);