The default encoding for a text file in Visual Studio 2010 is UTF-8.
Therefore, if you need to use ANSI, I would recommend creating a file outside of VS, and then dragging it into the project or adding an existing file to get it in the project. From their VS will respect the encoding of the file.
source share