pound sign trouble

J

jaems

my code

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


Approx £

Displays as

Approx £

Any help welcome

Jaes
 
A

Anthony Jones

jaems said:
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-8) 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.
 
J

jaems

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
 
R

Registered User

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;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top