File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/main/java/org/jitsi/jigasi/transcription Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 22
22
23
23
import java .io .*;
24
24
import java .net .*;
25
+ import java .nio .charset .*;
25
26
26
27
/**
27
28
* Utility functions used in the transcription package.
@@ -49,10 +50,10 @@ public static void postJSON(String address, JSONObject json)
49
50
HttpURLConnection conn = (HttpURLConnection ) url .openConnection ();
50
51
conn .setDoOutput (true );
51
52
conn .setRequestMethod ("POST" );
52
- conn .setRequestProperty ("Content-Type" , "application/json" );
53
+ conn .setRequestProperty ("Content-Type" , "application/json; charset=UTF-8 " );
53
54
54
55
OutputStream os = conn .getOutputStream ();
55
- os .write (json .toString ().getBytes ());
56
+ os .write (json .toString ().getBytes (StandardCharsets . UTF_8 ));
56
57
os .flush ();
57
58
58
59
if (conn .getResponseCode () != HttpURLConnection .HTTP_OK )
You can’t perform that action at this time.
0 commit comments