Groups | Blog | Home
all groups > c# > january 2007 >

c# : Default encoding as UTF-8 in VS.NET 2005


Sin Jeong-hun
1/31/2007 11:53:42 PM
Even though I don't use Korean in my codes and comments, I often need
to insert Korean literals, because the target users are Koreans.
Because I have no plan to globalize those programs, I use hard-coded
literals.

Anyways, can't I set VS.NET 2005 always create and save C# files in
UTF-8 encoding? Currently it seems that VS.NET is using ascii
encoding. SharpDevelop (C# ide) has this option (Options->Text editor-
[quoted text, click to view]
provides a similar option.

Thank you.
Mihai N.
2/1/2007 11:45:27 AM
[quoted text, click to view]

Try "File" -> "Advanced Save Options..." and select "Unicode (UTF-8 with
signature) - Codepage 65001"


--
Mihai Nita [Microsoft MVP, Windows - SDK]
http://www.mihai-nita.net
------------------------------------------
AddThis Social Bookmark Button