mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-24 11:38:40 +01:00
Encode editor payload using UTF-8 (#841)
This commit is contained in:
parent
bd3a4e1ad7
commit
4923d10b86
@ -114,7 +114,7 @@ public enum StandardPastebin implements Pastebin {
|
|||||||
outputStream = byteOut;
|
outputStream = byteOut;
|
||||||
}
|
}
|
||||||
|
|
||||||
try (Writer writer = new OutputStreamWriter(outputStream)) {
|
try (Writer writer = new OutputStreamWriter(outputStream, StandardCharsets.UTF_8)) {
|
||||||
GSON.toJson(content, writer);
|
GSON.toJson(content, writer);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
|
Loading…
Reference in New Issue
Block a user