2

I use Chinese in my comments and configs. And after I auto merge and check in source files, they become messy codes.

I guess the reason is TFS merge them by UTF-8 encoding but my VS.NET is using gb2312 encoding. I know I can get and change each file from menu [file->advance save option] Can't I set VS.NET 2005 always create and save C# files in UTF-8 encoding?

2 Answers 2

1

VS defaults to UTF-8 when the file is created inside VS. If the file was create (or modified) outside with other encoding, it will honor the existing encoding unless you "save as" -> UTF-8

Sign up to request clarification or add additional context in comments.

Comments

0

Odd: My VS2005 at work and my copies of vs2008 and vs2005 at home all default to Utf-8.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.