Last post Nov 20, 2006 01:54 PM by vivek_iit
Nov 20, 2006 11:14 AM|Joannes Vermorel|LINK
I am working on a ASP.Net website that contains (for now) only plain English. We are going to add localized content. What should I do to ensure that all existing and future files (html for ex.), created through VS2005, are UTF-8 encoded by default?
Thanks in advance,
Nov 20, 2006 01:35 PM|vivek_iit|LINK
You can use the request/responseEncoding and the fileEncoding attribute in the configuration file (web.config or Page directive).
See this link for details:
Hope this helps,
Nov 20, 2006 01:43 PM|Joannes Vermorel|LINK
I am already doing that but it does not solve the problem. The problem is "We are a team of developers, I want to enforce that anyone that credit/edit a file do it with the right encoding". This problem is not on the web client perspective but on
the VS2005 configuration. For now, I haven't find a way to ensure that every newly created file gets encoded in UTF-8 for everyone (settings that would be shared through the SCM).
Nov 20, 2006 01:54 PM|vivek_iit|LINK
I think you can achieve this by customizing your VS project template (or creating a new one) and sharing with all your developers. See these links for details: