How to inform VS 2008 about the termination of the placement of byte orders in front of my files?

By default, Visual Studio 2008 places a Unicode byte encoding character in front of any file you save. You can override this for each file by choosing File> Advanced Save Options and choosing a different encoding.

How to tell VS to use standard encoding for all files in a specific project or solution? This radically distorts source control, because we have some users who commit files with VS and others who do not, creating “illusory” commits.

+3
source share
1 answer

As far as I know, there is no way to globally set the encoding in VS 2008. In the express edition, which I have "Advanced saves as", this is the only option for changing the encoding.

However, there is work - you can get a visual studio to use a different encoding by setting the regional settings of computers, for example, in English. This, in turn, would force VS to use "Western European - Codepad 1252" rather than "Unicode UTF-8 - Codepage 65001". Again, this works in Express Edition, and I'm sure it will be in the full application.

Hope this helps ...

F.

+3
source

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


All Articles