473,549 Members | 2,829 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

pound sign trouble

my code

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

Displays as

Approx £

Any help welcome


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

Mar 10 '08 #2

"jaems" <ja***@ntlworld .comwrote in message
news:yG******** *********@newsf e3-gui.ntli.net...
my code

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

Displays as

Approx £

Any help welcome

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 ResponseEncodin g="UTF-8" to the <%@ page line.

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

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" ResponseEncodin g="UTF-8"
MaintainScrollP ositionOnPostba ck="true" %>

did not work

nor when I tried Windows-1252.

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

How do I change those?

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;£&nb sp; which I intend to display as:
Approx £

Displays as

Approx £

Any help welcome

<font size="2">Approx </font>&nbsp;£&nb sp;
Mar 13 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

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 well as
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 customized message. If you know the code please follow up. Any possible information partaining to my requests is very highly appreciated!!! Thank you...
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 excuse any typos). This page is not a production page - I created it just to try and solve the £ sign problem I am having. When I put the pound sign...
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 application that is processing the output complains about the character. Both the strings and the application are using UTF-8. If you view the text in...
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"); StreamWriter sw = new StreamWriter("output.txt"); string Line; char delimiter = {'*'}; while((Line = sr.ReadLine()) != null) { string Fields;
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 what is causing it? regards marc
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 will be appreciated. thanks and regards Nanda
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. googling, would appreciate some detailed information.
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...
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 encoded in the source that I am trying to extract with the WebRequest and WebResponse objects. The page is using a charset of iso-8859-1 which I think...
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.