I have made some changes to a Classic ASP application which breaks foreign letters unless "Response.Charset = "utf-8"" is set in every page... And it's a lot of pages...
开发者_运维知识库Could I force the Charset to utf-8 for every page without having to set it in each page?
You can make sure that asp
files are served with this header.
In IIS 5.1/6, go to the website properties, click "File Types" and make sure the Content Type for asp
files is text/html;charset=UTF-8
.
IIS 7 has a similar setting. Go to the level you need, in Features View, double-click MIME Types, find asp
, select Edit
and update to the correct value.
精彩评论