Encode editor payload using UTF-8 (#841)

This commit is contained in:
Luck 2018-03-18 20:58:33 +00:00
parent bd3a4e1ad7
commit 4923d10b86
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -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);