mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-17 15:57:18 -04:00
Lifting GB2312 to GB18030
This commit is contained in:
parent
3a5e8a827c
commit
fbf7ff6ebd
@ -124,9 +124,10 @@ public enum OperatingSystem {
|
|||||||
if (nativeEncoding != null && !nativeEncoding.equalsIgnoreCase(nativeCharset.name())) {
|
if (nativeEncoding != null && !nativeEncoding.equalsIgnoreCase(nativeCharset.name())) {
|
||||||
nativeCharset = Charset.forName(nativeEncoding);
|
nativeCharset = Charset.forName(nativeEncoding);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nativeCharset == StandardCharsets.UTF_8 || nativeCharset == StandardCharsets.US_ASCII) {
|
if (nativeCharset == StandardCharsets.UTF_8 || nativeCharset == StandardCharsets.US_ASCII) {
|
||||||
nativeCharset = StandardCharsets.UTF_8;
|
nativeCharset = StandardCharsets.UTF_8;
|
||||||
} else if ("GBK".equalsIgnoreCase(nativeCharset.name())) {
|
} else if ("GBK".equalsIgnoreCase(nativeCharset.name()) || "GB2312".equalsIgnoreCase(nativeCharset.name())) {
|
||||||
nativeCharset = Charset.forName("GB18030");
|
nativeCharset = Charset.forName("GB18030");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user