472,119 Members | 1,726 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,119 software developers and data experts.

pound sign trouble

my code

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

Displays as

Approx £

Any help welcome

Jaes

Mar 10 '08 #1
4 2175
Only started causing a proble since upgrade from VS2005 to VS 2008

Mar 10 '08 #2

"jaems" <ja***@ntlworld.comwrote in message
news:yG*****************@newsfe3-gui.ntli.net...
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.

--
Anthony Jones - MVP ASP/ASP.NET
Mar 10 '08 #3
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
Mar 12 '08 #4
On Mon, 10 Mar 2008 21:24:46 GMT, "jaems" <ja***@ntlworld.comwrote:
>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;
Mar 13 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Robert Zierhofer | last post: by
9 posts views Thread by Neil Varshneya | last post: by
4 posts views Thread by ben | last post: by
5 posts views Thread by Waldy | last post: by
6 posts views Thread by Anthony | last post: by
4 posts views Thread by monomaniac21 | last post: by
8 posts views Thread by davoti | last post: by
20 posts views Thread by Ravikiran | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.