We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 544428f + b1bd2b9 commit 9222f11Copy full SHA for 9222f11
src/com/darkprograms/speech/recognizer/GSpeechDuplex.java
@@ -275,7 +275,7 @@ private Scanner openHttpsConnection(String urlStr) {
275
httpConn.connect();
276
resCode = httpConn.getResponseCode();
277
if (resCode == HttpsURLConnection.HTTP_OK) {
278
- return new Scanner(httpConn.getInputStream());
+ return new Scanner(httpConn.getInputStream(), "UTF-8");
279
}
280
else{
281
System.out.println("Error: " + resCode);
@@ -520,4 +520,4 @@ private byte[][] chunkAudio(byte[] data) {
520
521
522
523
-}
+}
0 commit comments