Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dinky
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangpeng
dinky
Commits
ce1a0dd4
Unverified
Commit
ce1a0dd4
authored
Aug 31, 2023
by
Licho
Committed by
GitHub
Aug 31, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: fix encode (#2281)
* feat: fix encode * Spotless Apply --------- Co-authored-by:
leechor
<
leechor@users.noreply.github.com
>
parent
7f78c24a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
I18n.java
dinky-common/src/main/java/org/dinky/utils/I18n.java
+1
-2
No files found.
dinky-common/src/main/java/org/dinky/utils/I18n.java
View file @
ce1a0dd4
...
@@ -19,7 +19,6 @@
...
@@ -19,7 +19,6 @@
package
org
.
dinky
.
utils
;
package
org
.
dinky
.
utils
;
import
java.nio.charset.StandardCharsets
;
import
java.text.MessageFormat
;
import
java.text.MessageFormat
;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.Locale
;
import
java.util.Locale
;
...
@@ -52,7 +51,7 @@ public final class I18n {
...
@@ -52,7 +51,7 @@ public final class I18n {
public
static
String
getMessage
(
String
key
)
{
public
static
String
getMessage
(
String
key
)
{
bundle
=
ResourceBundle
.
getBundle
(
MESSAGES_BASE
);
bundle
=
ResourceBundle
.
getBundle
(
MESSAGES_BASE
);
String
message
=
bundle
.
getString
(
key
);
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
;
return
message
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment