The problem is simply crossing character sets. Just make sure that the character set you are attempting to output is the same as the saved file that is being read.