From c9003f1f40c27948ee5e548c889c2d1ac7f6bfd1 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Sun, 1 Aug 2010 19:53:08 +0000 Subject: [PATCH] closes #1706, [PATCH] Item with non-ASCII characters corrupted on save when Show Editor is open The problem here was that entities weren't properly being encoded as Unicode RTF when the editor was used, because TinyMCE was replacing high characters with HTML entities that were not properly decoded. This is now fixed. --- chrome/content/zotero/bindings/styled-textbox.xml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/chrome/content/zotero/bindings/styled-textbox.xml b/chrome/content/zotero/bindings/styled-textbox.xml index ef81c9b64f..b0efaabe07 100644 --- a/chrome/content/zotero/bindings/styled-textbox.xml +++ b/chrome/content/zotero/bindings/styled-textbox.xml @@ -76,7 +76,6 @@ this._htmlToRtfMap = [ [/"(\w)/, "“$1"], [/([\w,.?!])"/, "$1”"], - [/[\x7F-\uFFFF]/g, function(aChar) { return "\\uc0\\u"+aChar.charCodeAt(0).toString()+" " }], ["

", ""], ["

", "\\par "], [/<\/?div[^>]*>/g, ""], @@ -179,6 +178,7 @@