How convert files or strings from ANSI to UTF-8?
BumpJun 19 2011 — edited Jun 28 2011I have a program that reads line by line a file and writes to another. If the original file is ANSI, then the resulting is ANSI as well, and if the original is UTF-8 the resulting as well. How can I change this behavior so all output files are UTF-8 encoded, with BOM or without it?