Unicode in Visual Studio

Sometimes people ask me how to let the Visual Studio remember the default text encoding when creating new file or adding new item to the projects. At first, I don’t know. VS always use the system default codepage settings for the new created files/items. After I met with this blog post, I finally got an answer for this question. Check it out!

ASP.NET Resources – Unicode in Visual Studio.NET 2003

If you don’t wanna read through this long post, I pull out the key section for you.

/! TO ALL THOSE ASKING HOW TO CHANGE DEFAULT ENCODING WHILE CREATING NEW FILE IN VISUAL STUDIO /!
Go to C:Program FilesMicrosoft Visual Studio .NET 2003VC#CSharpProjectItems (directory may vary depending on which VS version you have, and which project’s language you target), open the template you need to change (I needed to change JScript.js) in Visual Studio (or any other text editor I suppose?), and save it back to the encoding you want.
=> this will affect files you create while in a project, using Project > Add new item… (or right-clicking on the project tree > Add > Add new item…) (or Ctrl+Shift+A) (i think i said it all didn’t I?)
You can also go to C:Program FilesMicrosoft Visual Studio .NET 2003Common7IDENewScriptItems (or NewFileItems, depends what u wanna do), and to the same (open/save with encoding).
=> this will affect files you create using File > New > File…

Unicode in Visual Studio

One thought on “Unicode in Visual Studio

  1. Unknown's avatar Unknown says:

    Amberdigital Branch,Southern Stars Enterprises Co is specializing in the development and manufacturing of advertisement screens, LCD digital signage and LCD signages. Established in 1996, we have explored and developed the international market with professionalism. We have built a widespread marketing network, and set up a capable management team dedicated to provide beyond-expectation services to our customers.

    amberdigital Contact Us

    Southern Stars Enterprises Co (Shenzhen Office)
    Add:DE, 16/F, Building 2, Nanguo Tower, Sungang Road, Shenzhen, China
    E-mail:sstar@netvigator.com carol@sstar-hk.com
    Tel:+86 755 2592 9100
    Fax:+86 755 2592 7171
    website:http://http://www.amberdigital.com.hk
    alibaba:http://amberdigital.en.alibaba.com%5Bb

Leave a comment