473,399 Members | 3,106 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 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 2230
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Robert Zierhofer | last post by:
hi there, it seems as if i can´t convert the euro and pound sign to their html equivalents. i tried eregi_replace("€", "&euro;", $haystack); eregi_replace("£", "&pound;", $haystack); as...
9
by: Neil Varshneya | last post by:
Hi, I've been having trouble trying to find the html code command for how to make the sign that when you click something wrong it flashes up and makes a tone with the speakers on and has a...
4
by: ben | last post by:
Hi all, I have a simple PHP page that takes values from a form and puts them in a database (MySQL). The code is in a file test.php, which I have typed in at the bottom of this post (please...
5
by: Waldy | last post by:
Hi there, I am using the .Net XML Serialization classes to create XML strings. This has been working fine up until the point that one of the strings contained a pound sterling symbol. The...
6
by: Anthony | last post by:
When using StreamReader/Writer to process an input text file to an output text file the pound signs (£) simply disappear. Sample code: StreamReader sr = new StreamReader("input.txt");...
4
by: monomaniac21 | last post by:
hi im outputting text from a db and where a £ sign has been entered a ? character appears instead which i cant seem to get rid of with a simple str_replace. is their a way to get rid of it? and...
5
by: ramaswamynanda | last post by:
Hello, I have a currency field on my form. The default formats for this field are dollar, euro. There is no pound symbol.....How do i put in a currency format, having the pound sign. Any help...
8
by: davoti | last post by:
Hi, I never truly understand how a macro with ## work in C, for example, if I define #define X X##_YZ what and how does this translated into after compilation? Can't find similar info....
20
by: Ravikiran | last post by:
Hi Friends, I wanted know about whatt is ment by zero optimization and sign optimization and its differences.... Thank you...
0
by: RobR2009 | last post by:
I am having trouble with a C# proxy page I am writing which allows me to do cross domain AJAX calls with Javascript. The problem is with certain pages that contain pound signs £ that are not HTML...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.