From 4923d10b86e4759b7b07a6ba38e9df6fbaccd6de Mon Sep 17 00:00:00 2001 From: Luck Date: Sun, 18 Mar 2018 20:58:33 +0000 Subject: [PATCH] Encode editor payload using UTF-8 (#841) --- .../java/me/lucko/luckperms/common/web/StandardPastebin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/me/lucko/luckperms/common/web/StandardPastebin.java b/common/src/main/java/me/lucko/luckperms/common/web/StandardPastebin.java index a686252e..fbb9490d 100644 --- a/common/src/main/java/me/lucko/luckperms/common/web/StandardPastebin.java +++ b/common/src/main/java/me/lucko/luckperms/common/web/StandardPastebin.java @@ -114,7 +114,7 @@ public enum StandardPastebin implements Pastebin { outputStream = byteOut; } - try (Writer writer = new OutputStreamWriter(outputStream)) { + try (Writer writer = new OutputStreamWriter(outputStream, StandardCharsets.UTF_8)) { GSON.toJson(content, writer); } catch (IOException e) { throw new RuntimeException(e);