This commit is contained in:
Redkale
2020-01-27 12:32:22 +08:00
parent b14f32deb3
commit c1509bb712

View File

@@ -393,7 +393,7 @@ public final class ByteArray {
start = 0;
len = index;
}
if (charset == null) return new String(Utility.decodeUTF8(bs, start, len));
if (charset == null) return new String(bs, start, len, StandardCharsets.UTF_8);
return new String(bs, start, len, charset);
}