Character set problems when combining an ASP.NET project and a Dreamweaver template
I have been developing a web site which is mainly html but also contains an ASP.NET application. The template for the site was created in Dreamweaver and the application in Visual Studio. The web site is in German so contains lots of umlauts. I noticed a really weird problem. Everything was OK until I looked at the index.aspx web page and all the umlauts were being shown as "?" etc. I looked at the meta tags in both the ASP.NET web page and the html pages and they were identical :
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
So I was confused, finally I found out the problem .....
It is in the web.config file :
<
globalization
requestEncoding="utf-8"
responseEncoding="utf-8"
/>
The request and the response encoding have to match the charset defined in your web page or your page will not display correctly.