Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > pound sign trouble

Reply
Thread Tools

pound sign trouble

 
 
jaems
Guest
Posts: n/a
 
      03-10-2008
my code

<font size="2">Approx </font>&nbsp;&nbsp; which I intend to display as:


Approx

Displays as

Approx £

Any help welcome

Jaes

 
Reply With Quote
 
 
 
 
jaems
Guest
Posts: n/a
 
      03-10-2008
Only started causing a proble since upgrade from VS2005 to VS 2008

 
Reply With Quote
 
 
 
 
Anthony Jones
Guest
Posts: n/a
 
      03-10-2008

"jaems" <(E-Mail Removed)> wrote in message
news:yGhBj.9511$%(E-Mail Removed)...
> my code
>
> <font size="2">Approx </font>&nbsp;&nbsp; which I intend to display as:
>
>
> Approx
>
> Displays as
>
> Approx £
>
> Any help welcome
>
> Jaes
>


You have a mismatch between the codepage being used to encode the response
(which appears to be 65001 UTF- and the CharSet being sent to the
compilier which should be UTF-8 but in this case isn't.

Try adding ResponseEncoding="UTF-8" to the <%@ page line.

Alternatively the file has been saved as UTF-8 but is believed to be
Windows-1252.

In the ASP.NET Configuration Settings (from IIS manager) check the
Globaliszation settings on the Application Tab. You should ensure that
files are saved in the encoding that the File encoding field indicates. If
a file deviates from this it should indicate the codepage used with the
codepage page attribute.

--
Anthony Jones - MVP ASP/ASP.NET


 
Reply With Quote
 
jaems
Guest
Posts: n/a
 
      03-12-2008
Thanks for your help but adding

<%@ Page Language="VB" Debug="true" ResponseEncoding="UTF-8"
MaintainScrollPositionOnPostback="true" %>

did not work

nor when I tried Windows-1252.

I do not understand the bit about ASP.NET Configuration Settings (from IIS
manager)

How do I change those?

Jaes
 
Reply With Quote
 
Registered User
Guest
Posts: n/a
 
      03-13-2008
On Mon, 10 Mar 2008 21:24:46 GMT, "jaems" <(E-Mail Removed)> wrote:

>my code
>
><font size="2">Approx </font>&nbsp;&nbsp; which I intend to display as:
>
>
>Approx
>
>Displays as
>
>Approx £
>
>Any help welcome
>

Try

<font size="2">Approx </font>&nbsp;£&nbsp;
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
$ sign to gb pound sign PWB Computer Support 6 02-19-2007 03:06 AM
streamreader will not read UK pound sign!!! =?Utf-8?B?bTAwbm0wbmtleQ==?= ASP .Net 6 11-22-2005 12:55 PM
Pound sign - Prefixed with Simon Harris HTML 3 01-29-2005 10:32 AM
UK pound sign causing page not to validate? T.J. HTML 10 11-12-2003 07:55 PM
Re: Pound Sign in text emails Jerry III ASP .Net 0 10-15-2003 07:41 AM



Advertisments