I have a String that contains something like this:
Hello,\nmy name\nis Manuel.
When I do a System.out.println of that string it comes out like this:
Hello,
my name
is Manuel
However, when I redirect that to a file it comes out like this (I wrote ?but it comes out as a square):
Hello,簃y name篿s Manuel
What can I do to make it appear as it should in the file?