views:

20

answers:

1

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?

+1  A: 

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.

Oded
And IIS 5.1? (Don't ask...)
Christian W
@Christian W - Same as IIS 6... Stuck on an XP box?
Oded
Sorry, I meant IIS 5... :|
Christian W
@Christian W - Perhaps this link will help. http://technet.microsoft.com/en-us/library/bb742440.aspx
Oded