From dad0b3125f544b57802d0d46458041aa38cb35cf Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 29 Dec 2008 23:57:41 +0000 Subject: [PATCH] Fix UTF-8 output in BibTeX translator in 1.0.9 (not yet pushed) --- translators/BibTeX.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/translators/BibTeX.js b/translators/BibTeX.js index 8e456c91d..c476d899f 100644 --- a/translators/BibTeX.js +++ b/translators/BibTeX.js @@ -8,7 +8,7 @@ "maxVersion":"", "priority":200, "inRepository":true, - "lastUpdated":"2008-12-16 23:13:33" + "lastUpdated":"2008-12-29 23:54:59" } Zotero.configure("dataMode", "block"); @@ -1807,7 +1807,7 @@ function writeField(field, value, isMacro) { // Case of words with uppercase characters in non-initial positions is preserved with braces. if(!isMacro) value = value.replace(/([^\s]+[A-Z][^\s]*)/g, "{$1}"); } - if (!Zotero.getOption("UTF8")) { + if (Zotero.getOption("exportCharset") != "UTF-8") { value = value.replace(/[\u0080-\uFFFF]/g, mapAccent); } Zotero.write(value);