diff --git a/CHANGELOG b/CHANGELOG index 6a02555832a..1d38a2a606e 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,4 +1,5 @@ [master] + - Fix for bug 1213 (sourceforge): Fix encoding for DOI import - Feature #809: import pubmed central id (pmc) field from medline - Fix undoing Cleanup/Convert to Biblatex - Adapted pattern to parse DBLP entries diff --git a/src/main/java/net/sf/jabref/imports/DOItoBibTeXFetcher.java b/src/main/java/net/sf/jabref/imports/DOItoBibTeXFetcher.java index 0c00fec7477..f88f7bb7aac 100644 --- a/src/main/java/net/sf/jabref/imports/DOItoBibTeXFetcher.java +++ b/src/main/java/net/sf/jabref/imports/DOItoBibTeXFetcher.java @@ -1,4 +1,4 @@ -/* Copyright (C) 2012 JabRef contributors. +/* Copyright (C) 2014 JabRef contributors. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or @@ -119,7 +119,7 @@ public BibtexEntry getEntryFromDOI(String doi, OutputPrinter status) { String bibtexString; try { - bibtexString = Util.getResults(conn); + bibtexString = Util.getResultsWithEncoding(conn, "UTF8"); } catch (FileNotFoundException e) { if (status != null) { @@ -134,7 +134,9 @@ public BibtexEntry getEntryFromDOI(String doi, OutputPrinter status) { } - + //Usually includes an en-dash in the page range. Char is in cp1252 but not + // ISO 8859-1 (which is what latex expects). For convenience replace here. + bibtexString = bibtexString.replaceAll("(pages=\\{[0-9]+)\u2013([0-9]+\\})", "$1--$2"); BibtexEntry entry = BibtexParser.singleFromString(bibtexString); if (entry != null) { diff --git a/src/main/resources/help/About.html b/src/main/resources/help/About.html index 03162d52027..5c1840ec082 100644 --- a/src/main/resources/help/About.html +++ b/src/main/resources/help/About.html @@ -83,6 +83,7 @@