[thelist] IIS / formatCurrency Problem

Bob Thomson bob at nkd-webmedia.co.uk
Fri Oct 31 08:36:46 CST 2003


Chaps,

My pages all contain the following:

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

Which I have changed to:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

I'll deploy this and see if the problem resurfaces at all.

Thanks for all the help, I was really stuck on this issue.

Cheers,

bob

************************************
Bob Thomson
nkd

http://www.nkd-webmedia.co.uk
http://www.soqcentral.com

0131 220 8252 (Switchboard)
0131 472 4812 (DDI extension)
0131 220 8352 (Fax)
0785 575 9009 (Mobile)
 
One St. Colme Street 
Edinburgh 
EH3 6AA 
 
This email may contain confidential information intended solely for use
by the addressee. If you are not the intended recipient of this
communication you should destroy it without copying, disclosing or
otherwise using its contents. Please notify the sender immediately of
the error. Internet communications are not necessarily secure and may be
intercepted or changed after they are sent. nkd does not accept
liability for any such changes. If you wish to confirm the origin or
content of this communication, please contact the sender using an
alternative means of communication.This communication does not create or
modify any contract. 
 
nkd is the trading name of nkd webmedia ltd, a limited company
registered in Scotland. Registered number:215248. Registered Office: 5
Valleyfield Street, Edinburgh, EH3 6AA.


> -----Original Message-----
> From: thelist-bounces at lists.evolt.org [mailto:thelist-
> bounces at lists.evolt.org] On Behalf Of Ken Schaefer
> Sent: 31 October 2003 12:35
> To: thelist at lists.evolt.org
> Subject: Re: [thelist] IIS / formatCurrency Problem
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 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.
> :
> <snip>
> :
> : 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"
> %>
> 
>     -or-
> 
> If you need to do this sitewide, add a custom header via the IIS MMC
> Snapin
> 
>     -or-
> 
> Change the pages to be ASP.Net (which, by default, adds a UTF-8 char
> encoding header)
> 
> Cheers
> Ken
> 
> --
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
> 
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !



More information about the thelist mailing list