diff --git a/java/com/google/scrollview/ScrollView.java b/java/com/google/scrollview/ScrollView.java index e1a02dae35..3f2de7554e 100644 --- a/java/com/google/scrollview/ScrollView.java +++ b/java/com/google/scrollview/ScrollView.java @@ -380,7 +380,7 @@ public static void main(String[] args) { 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"));