Unverified Commit ce1a0dd4 authored by Licho's avatar Licho Committed by GitHub

feat: fix encode (#2281)

* feat: fix encode * Spotless Apply --------- Co-authored-by: 's avatarleechor <leechor@users.noreply.github.com>
parent 7f78c24a
......@@ -19,7 +19,6 @@
package org.dinky.utils;
import java.nio.charset.StandardCharsets;
import java.text.MessageFormat;
import java.util.Arrays;
import java.util.Locale;
......@@ -52,7 +51,7 @@ public final class I18n {
public static String getMessage(String key) {
bundle = ResourceBundle.getBundle(MESSAGES_BASE);
String message = bundle.getString(key);
message = new String(message.getBytes(StandardCharsets.ISO_8859_1), StandardCharsets.UTF_8);
// message = new String(message.getBytes(StandardCharsets.ISO_8859_1), StandardCharsets.UTF_8);
return message;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment