BrotliHaxe
BrotliHaxe copied to clipboard
Fix Java encoder to use ISO-8859-1
The Java encoder was corrupting the decoded string with unicode replacement characters. We fixed this by changing the charset in Bytes.java to ISO-8859-1.
https://github.com/dominikhlbg/BrotliHaxe/blob/master/java/src/haxe/io/Bytes.java#L54 Line 54 (BrotliHaxe/java/src/haxe/io/Bytes.js):
return new java.lang.String(this.b, pos, len, "ISO-8859-1");