This is what I have tryed to do:
String raw = dstream.readLine();
raw = raw.replaceAll("Up"," ↑ ");
raw = raw.replaceAll("Right"," → ");
System.out.println(raw);
This is part of an easy program that receives Strings and prints them to a text file: "java -jar Server.jar > a.txt".
The problem is this:
Insted of ↑ or → , I get those in the txt file: "↕ ↕ ↕ ↑"