Remove byte order marks, which cause tests to fail with Java 1.8

This commit is contained in:
Stefan Schmiedl
2019-06-22 19:30:56 +02:00
committed by Stefan Schmiedl
parent 2495d33655
commit 80a9a74c5c
2 changed files with 2 additions and 2 deletions

View File

@@ -369,7 +369,7 @@ public class ZUGFeRDImporter {
static String convertStreamToString(java.io.InputStream is) {
// source https://stackoverflow.com/questions/309424/how-do-i-read-convert-an-inputstream-into-a-string-in-java referring to
// https://community.oracle.com/blogs/pat/2004/10/23/stupid-scanner-tricks
Scanner s = new Scanner(is).useDelimiter("\\A");
Scanner s = new Scanner(is, "UTF-8").useDelimiter("\\A");
return s.hasNext() ? s.next() : "";
}