String UTF_16LE byte size is double of character size.
This commit is contained in:
@ -56,7 +56,7 @@ public class ReadablePacket
|
||||
String result = "";
|
||||
try
|
||||
{
|
||||
result = new String(readBytes(readShort()), StandardCharsets.UTF_16LE);
|
||||
result = new String(readBytes(readShort() * 2), StandardCharsets.UTF_16LE);
|
||||
}
|
||||
catch (Exception ignored)
|
||||
{
|
||||
|
Reference in New Issue
Block a user