mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-18 06:30:14 +08:00
Fix CID 1386098 (Dubious method used)
PrintStream depends on the default encoding if no encoding is given, so set UTF-8 encoding explicitly. Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
0686cbed87
commit
4bebf3a5a3
@ -380,7 +380,7 @@ public class ScrollView {
|
||||
System.out.println("Client connected");
|
||||
|
||||
// Setup the streams
|
||||
out = new PrintStream(socket.getOutputStream(), true);
|
||||
out = new PrintStream(socket.getOutputStream(), true, "UTF-8");
|
||||
in =
|
||||
new BufferedReader(new InputStreamReader(socket.getInputStream(),
|
||||
"UTF8"));
|
||||
|
Loading…
Reference in New Issue
Block a user