mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-15 22:32:06 +00:00
Fixed Font names charset
This commit is contained in:
@@ -515,7 +515,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
baos.write(r);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reads one netstring (length + string) value from the stream
|
||||
*
|
||||
@@ -526,23 +526,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
public String readNetString(String name) throws IOException {
|
||||
newDumpLevel(name, "string");
|
||||
int length = readEx();
|
||||
String ret = new String(readBytesInternalEx(length));
|
||||
endDumpLevel();
|
||||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* Reads one netstring (length + string) value from the stream
|
||||
*
|
||||
* @param name
|
||||
* @param charset
|
||||
* @return String value
|
||||
* @throws IOException
|
||||
*/
|
||||
public String readNetString(String name, Charset charset) throws IOException {
|
||||
newDumpLevel(name, "string");
|
||||
int length = readEx();
|
||||
String ret = new String(readBytesInternalEx(length), charset);
|
||||
String ret = new String(readBytesInternalEx(length), swf.getCharset());
|
||||
endDumpLevel();
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user