mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2025-02-21 13:22:37 +01:00
small
This commit is contained in:
parent
3f8121e157
commit
7f4336cc61
@ -195,11 +195,7 @@ public class HPacket implements StringifyAble {
|
|||||||
private String readString(int index, int length) {
|
private String readString(int index, int length) {
|
||||||
byte[] x = new byte[length];
|
byte[] x = new byte[length];
|
||||||
for (int i = 0; i < x.length; i++) { x[i] = readByte(index); index++; }
|
for (int i = 0; i < x.length; i++) { x[i] = readByte(index); index++; }
|
||||||
try {
|
return new String(x, StandardCharsets.ISO_8859_1);
|
||||||
return new String(x, "ISO-8859-1");
|
|
||||||
} catch (UnsupportedEncodingException e) { }
|
|
||||||
|
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String readLongString() {
|
public String readLongString() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user