mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-16 02:01:55 +00:00
Added #116 Show invalid utf-8 bytes in Strings as {invalid_utf8:xxx}
This commit is contained in:
@@ -508,7 +508,10 @@ public class SWFInputStream implements AutoCloseable {
|
||||
r = readEx();
|
||||
if (r == 0) {
|
||||
endDumpLevel();
|
||||
return new String(baos.toByteArray(), swf == null ? Utf8Helper.charsetName : swf.getCharset());
|
||||
if (swf == null || "UTF-8".equals(swf.getCharset())) {
|
||||
return Utf8Helper.decode(baos.toByteArray());
|
||||
}
|
||||
return new String(baos.toByteArray(), swf.getCharset());
|
||||
}
|
||||
baos.write(r);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user