Visual Studio 2010 Character Encoding

After creating a batch file in visual studio, I get an error when I run it about invalid characters. Does anyone know the default character encoding for txt files?

+4
source share
1 answer

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.

+4
source

Source: https://habr.com/ru/post/1309493/


All Articles