title: How can I print symbols from a String to a txt file?
body: <p>This is what I have tryed to do:</p>
  
  <pre><code> String raw = dstream.readLine();
                    raw = raw.replaceAll("Up"," ↑ ");
                    raw = raw.replaceAll("Right"," → ");
                  System.out.println(raw);
  </code></pre>
  
  <p>This is part of an easy program that receives Strings and prints them to a text file: "java -jar Server.jar > a.txt".</p>
  
  <p>The problem is this:<br>
  Insted of ↑ or → , I get those in the txt file: "â†•  â†•  â†•  â†‘"  </p>