Encode editor payload using UTF-8 (#841)

This commit is contained in:
Luck
2018-03-18 20:58:33 +00:00
Unverified
parent bd3a4e1ad7
commit 4923d10b86
@@ -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);