www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit dad0b3125f544b57802d0d46458041aa38cb35cf
parent 3122339d8a4ec6a03a6693f897f8e3d02b2fccd1
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon, 29 Dec 2008 23:57:41 +0000

Fix UTF-8 output in BibTeX translator in 1.0.9 (not yet pushed)


Diffstat:
Mtranslators/BibTeX.js | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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);