-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix charset detection with utf16 and others (#8947)
* Fix charset detection with utf16 and others Fixes #8895 Fixes #8870 * checkstyöe * Fix typo in method names * change newlines * get bytes * Set newline character to LF * Revert "get bytes" This reverts commit 1082f8a. * progress * switch line sep to LF * Please work * Try jitpack * Add manual build of icu4j * Check if we have ascii in the list of charsets * fix checkstyle * Update external-libraries.md * Enocde with UTF-16BE * Fix umlaut * Hack to get test running * Also compare meta data * Add enforced ignorance of malformed characters Source: http://biercoff.com/malformedinputexception-input-length-1-exception-solution-for-scala-and-java/ Co-authored-by: Christoph <siedlerkiller@gmail.com> * checkstyle * IntelliJ now also renders the file correctly * Add test Additionally - Replace unknown characters - Remove obsolete wrapping classes in test * Refine CHANGELOG.md * Remove non-working jpackage reference Co-authored-by: Oliver Kopp <kopp.dev@gmail.com> Co-authored-by: Houssem Nasri <housi.housi2015@gmail.com>
- Loading branch information
1 parent
cef980d
commit 76850e7
Showing
11 changed files
with
88 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+132 Bytes
src/test/resources/org/jabref/logic/importer/fileformat/encoding-utf-16BE-with-header.bib
Binary file not shown.
Binary file added
BIN
+122 Bytes
src/test/resources/org/jabref/logic/importer/fileformat/encoding-utf-16BE-without-header.bib
Binary file not shown.
5 changes: 5 additions & 0 deletions
5
...ef/logic/importer/fileformat/encoding-windows-1252-but-utf-8-declared--decoding-fails.bib
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
% Encoding: UTF-8 | ||
@Article{, | ||
author = {Test I. Last}, | ||
} |