开发者

Can I set CharSet for every page load? (Classic ASP)

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜