ASP.NET Globalization, using UTF-8 or any other encoding

There are some difficulties by setting globalization of a web site. By default .Net framework use unicode. Therefore it is not necessary to set this. If you have to use different encoding you can set this in web.config:
<globalization fileEncoding="utf-8" requestEncoding="utf-8" responseEncoding="utf-8" culture="bg-BG" uiCulture="bg-BG">

Check the following links for more information:

http://samples.gotdotnet.com/quickstart/aspplus/doc/internationalization.aspx

http://www.kbalertz.com/Feedback.aspx?kbNumber=893663

And here is a explanation of the Visual Studio behavior. VS may cause some problems if you don't know these issues.
http://blogs.msdn.com/mikhailarkhipov/archive/2004/08/07/210769.aspx

The last link helped me to decide my problem. I had to save all my files with utf-8 encoding to get Cyrillic encoded response.

No comments:

Post a Comment