using utf 16 instead of 8 so embed problem would be fixed i guess
This commit is contained in:
parent
bcf9a60dfb
commit
45bd2cf6b2
2 changed files with 2 additions and 2 deletions
|
@ -150,7 +150,7 @@ public class Flipper {
|
|||
connection.setDoOutput(true);
|
||||
connection.setRequestMethod("POST");
|
||||
OutputStream stream = connection.getOutputStream();
|
||||
stream.write(("{\"ByteData\": \"" + bytedata + "\"}").getBytes(StandardCharsets.UTF_8));
|
||||
stream.write(("{\"ByteData\": \"" + bytedata + "\"}").getBytes(StandardCharsets.UTF_16));
|
||||
stream.flush();
|
||||
stream.close();
|
||||
BufferedReader in = new BufferedReader(new InputStreamReader(connection.getInputStream()));
|
||||
|
|
|
@ -144,7 +144,7 @@ public class DiscordWebhook {
|
|||
connection.setDoOutput(true);
|
||||
connection.setRequestMethod("POST");
|
||||
OutputStream stream = connection.getOutputStream();
|
||||
stream.write(json.toString().getBytes(StandardCharsets.UTF_8));
|
||||
stream.write(json.toString().getBytes(StandardCharsets.UTF_16));
|
||||
stream.flush();
|
||||
stream.close();
|
||||
|
||||
|
|
Loading…
Reference in a new issue