[thelist] IIS / formatCurrency Problem

Ken Schaefer ken at adOpenStatic.com
Fri Oct 31 06:34:42 CST 2003

From: "Andrew Clover" <and-evolt at doxdesk.com>
Subject: Re: [thelist] IIS / formatCurrency Problem

: Bob Thomson <bob at nkd-webmedia.co.uk> wrote:
: > The problem is that once in a while when you open a page every ? sign is
: > preceded by a "?" character.
: This would occur if you were outputting your page in the UTF-8 encoding
: (where the UKP sign is encoded as 0xC2, 0xA3), but the browser was
: misinterpreting it as Latin-1 (or the similar Windows codepage). In this
: encoding the sequence comes out as a A-circumflex followed by (semi-
: coincidentally) a pound sign.
: The solution is to pass a Content-Type header specifying the correct
: character encoding in the HTTP response. This can also be done in HTML
: with a meta hack:
:   <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
: -- 
: Andrew Clover

I think Andrew's hit the nail on the head.

Other options:

Add it programmatically via Response.AddHeader()

Response.AddHeader "Content-Type", "text/html; charset=utf-8"


If you need to do this sitewide, add a custom header via the IIS MMC Snapin


Change the pages to be ASP.Net (which, by default, adds a UTF-8 char
encoding header)


More information about the thelist mailing list