From 30223882c3a2d8fc6db09473addfeb34cbc3edf8 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Wed, 24 Oct 2007 07:36:25 +0000 Subject: [PATCH] closes #807: Unicode characters lost in RTF output --- chrome/content/zotero/xpcom/cite.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/cite.js b/chrome/content/zotero/xpcom/cite.js index 388c2dbc4..9069f8359 100644 --- a/chrome/content/zotero/xpcom/cite.js +++ b/chrome/content/zotero/xpcom/cite.js @@ -2297,8 +2297,8 @@ Zotero.CSL.FormattedString.prototype.append = function(string, element, dontDeli .replace(/(\r\n|\r|\n)/g, "
") .replace(/[\x00-\x1F]/g, ""); } else if(this.format == "RTF") { - string = string.replace(/[\x7F-\uFFFF]/g, Zotero.CSL.FormattedString._rtfEscapeFunction) - .replace("\\", "\\\\", "g") + string = string.replace("\\", "\\\\", "g") + .replace(/[\x7F-\uFFFF]/g, Zotero.CSL.FormattedString._rtfEscapeFunction) .replace("\t", "\\tab ", "g") .replace(/(\r\n|\r|\n)/g, "\\line "); } else if(this.format == "Integration") {