Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/detectCharset' into detectCharset
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/test/java/org/jabref/logic/importer/fileformat/BibtexImporterTest.java
  • Loading branch information
HoussemNasri committed Jul 4, 2022
2 parents f93cfb8 + 59f3ffc commit ded49cd
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,9 @@ public void testParsingOfUtf16EncodedFileReadsUmlautCharacterCorrectly(String fi
MetaData metaData = new MetaData();
metaData.setMode(BibDatabaseMode.BIBTEX);
metaData.setEncoding(StandardCharsets.UTF_16BE);
BibDatabaseContext bibDatabaseContext = new BibDatabaseContext(new BibDatabase(List.of(new BibEntry(StandardEntryType.Article).withField(StandardField.TITLE, "Ü ist ein Umlaut"))), metaData);
BibDatabase database = new BibDatabase(List.of(new BibEntry(StandardEntryType.Article).withField(StandardField.TITLE, "Ü ist ein Umlaut")));;
database.setNewLineSeparator("\n");
BibDatabaseContext bibDatabaseContext = new BibDatabaseContext(database, metaData);

assertEquals(
bibDatabaseContext.getDatabase().getEntries(),
Expand Down

0 comments on commit ded49cd

Please sign in to comment.