mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
fix:charset detect don't work
This commit is contained in:
@@ -74,7 +74,7 @@ public class Localizer {
|
|||||||
String formattedMessage = "CHAR ENCODING ERROR";
|
String formattedMessage = "CHAR ENCODING ERROR";
|
||||||
final String[] charsets = { "ISO-8859-1", "UTF-8" };
|
final String[] charsets = { "ISO-8859-1", "UTF-8" };
|
||||||
//Support non-English-standard characters
|
//Support non-English-standard characters
|
||||||
String detectedCharset = charset(new String(formatter.toString()), charsets);
|
String detectedCharset = charset(resourceBundle.getString(key), charsets);
|
||||||
|
|
||||||
final int argLength = messageArguments.length;
|
final int argLength = messageArguments.length;
|
||||||
Object[] syncEncodingMessageArguments = new Object[argLength];
|
Object[] syncEncodingMessageArguments = new Object[argLength];
|
||||||
|
|||||||
Reference in New Issue
Block a user