473,836 Members | 1,623 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

encoding in utf-8

Strange problem,

Web pages encoded in utf-8 are appearing on customers' browsers as
iso-western european. This means that characters like the British £ symbol
get messed up. No amount of tinkering with browser settings or the server
settings has helped. Any ideas what the root of the problem might be?

The page in question is www.itchy-coo.com (displays fine on my browser, and
other North American browsers, seemingly). I'd appreciate knowing if other
people see the problem that my clients see.

I use <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> in
the html head. Is there a better way of signifying the encoding without
haveing to upgrade the website to XHTML?

Other pages on the same server encoded in utf-8 display ok. Wierd eh? Or am
I missing something obvious?

Thanks
Roland Tanner
Jul 24 '05 #1
9 5799
Els
Joe Blow wrote:
Strange problem,

Web pages encoded in utf-8 are appearing on customers' browsers as
iso-western european. This means that characters like the British £ symbol
get messed up. No amount of tinkering with browser settings or the server
settings has helped. Any ideas what the root of the problem might be?

The page in question is www.itchy-coo.com (displays fine on my browser, and
other North American browsers, seemingly). I'd appreciate knowing if other
people see the problem that my clients see.

I use <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> in
the html head. Is there a better way of signifying the encoding without
haveing to upgrade the website to XHTML?

Other pages on the same server encoded in utf-8 display ok. Wierd eh? Or am
I missing something obvious?


What code are you using for the pound signs in the original HTML?
£ or &pound; ?

View source shows a ? here. Could it be that you copy pasted code in
an editor that isn't set to use utf-8?

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: Various Artists - Everything Is O.K. With Me - Boaz
Shar`abi
Jul 24 '05 #2
Els wrote:
Joe Blow wrote:
Web pages encoded in utf-8 are appearing on customers' browsers as
iso-western european. This means that characters like the British £ symbol
get messed up.
www.itchy-coo.com


View source shows a ? here.


I see ? on other characters, too, like the em/en dash used in the age
ranges on http://www.itchy-coo.com/primary.html.

Change the character encoding to iso-8859-1 and everything displays
normally.

--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
Jul 24 '05 #3

"Els" <el*********@ti scali.nl> wrote in message
news:1h******** *************** ******@40tude.n et...
Joe Blow wrote:
Strange problem,

Web pages encoded in utf-8 are appearing on customers' browsers as
iso-western european. This means that characters like the British £
symbol
get messed up. No amount of tinkering with browser settings or the server
settings has helped. Any ideas what the root of the problem might be?

The page in question is www.itchy-coo.com (displays fine on my browser,
and
other North American browsers, seemingly). I'd appreciate knowing if
other
people see the problem that my clients see.

I use <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
in
the html head. Is there a better way of signifying the encoding without
haveing to upgrade the website to XHTML?

Other pages on the same server encoded in utf-8 display ok. Wierd eh? Or
am
I missing something obvious?


What code are you using for the pound signs in the original HTML?
£ or &pound; ?

View source shows a ? here. Could it be that you copy pasted code in
an editor that isn't set to use utf-8?

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: Various Artists - Everything Is O.K. With Me - Boaz
Shar`abi


That could be it. The editor (AceHTML) does have settings for different
encodings, but it is a bit glitchy. It also changes &#163 and &pound to £ in
the editor, which is an irritation.

Many thanks
Roland
Jul 24 '05 #4
Once upon a time *Joe Blow* wrote:
"Els" <el*********@ti scali.nl> wrote in message
news:1h******** *************** ******@40tude.n et...
Joe Blow wrote:
Strange problem,

Web pages encoded in utf-8 are appearing on customers' browsers as
iso-western european. This means that characters like the British £
symbol
get messed up. No amount of tinkering with browser settings or the server
settings has helped. Any ideas what the root of the problem might be?

The page in question is www.itchy-coo.com (displays fine on my browser,
and
other North American browsers, seemingly). I'd appreciate knowing if
other
people see the problem that my clients see.

I use <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
in
the html head. Is there a better way of signifying the encoding without
haveing to upgrade the website to XHTML?

Other pages on the same server encoded in utf-8 display ok. Wierd eh? Or
am
I missing something obvious?


What code are you using for the pound signs in the original HTML?
£ or &pound; ?

View source shows a ? here. Could it be that you copy pasted code in
an editor that isn't set to use utf-8?

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: Various Artists - Everything Is O.K. With Me - Boaz
Shar`abi


That could be it. The editor (AceHTML) does have settings for different
encodings, but it is a bit glitchy. It also changes &#163 and &pound to £ in
the editor, which is an irritation.


Very strange, I have used AceHTML 5 (free edition) for a long time and
made pages with utf-8 encoding (e.g. http://hem.bredband.net/arnel/ ).
Never have problems with it.

At least some of your encoding problems is the js files (e.g.
"wordofday.js") . Have you write (and saved) them also in AceHTML with
the utf-8 encoding?

--
/Arne

Top posters will be ignored. Quote the part you
are replying to, no more and no less! And don't
quote signatures, thank you.
Jul 24 '05 #5
On Mon, 16 May 2005, Joe Blow wrote:
Strange problem,
Prima facie the symptoms look like the usual problem, discussed at
http://www.w3.org/International/O-HTTP-charset
I use <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> in
the html head. Is there a better way of signifying the encoding
Yes, as the real HTTP header from the server, as the W3C note tells
you,
I missing something obvious?


You seem to have fixed it now? The server is sending charset=utf-8
in its real HTTP response headers by the time that I got to see this.

Jul 24 '05 #6
"Alan J. Flavell" <fl*****@ph.gla .ac.uk> wrote in message
news:Pi******** *************** ********@ppepc5 6.ph.gla.ac.uk. ..
On Mon, 16 May 2005, Joe Blow wrote:
Strange problem,


Prima facie the symptoms look like the usual problem, discussed at
http://www.w3.org/International/O-HTTP-charset
I use <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
in
the html head. Is there a better way of signifying the encoding


Yes, as the real HTTP header from the server, as the W3C note tells
you,
I missing something obvious?


You seem to have fixed it now? The server is sending charset=utf-8
in its real HTTP response headers by the time that I got to see this.


Many thanks for all your comments. I have fixed it. AceHTML was adding in a
line <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> in
an automated fashion, but saving as ISO. The weird thing was that everybody
who looked at it in my part of the world (Canada) saw the correct display
(from the server HTTP headers, which were in fact set), while everybody in
Europe saw a mess.

I've been using AceHTML for years, and have always liked it, but the latest
version is full of bugs and crashes. Can anyone suggest a better text editor
with a similar feature list, and either free of very cheap?

Alan Flavell - I used to work at Glasgow university by the way, in the
history department.

Best wishes
Roland
Jul 24 '05 #7
Gazing into my crystal ball I observed "Joe Blow" <Jo*@Blow.com > writing
in news:_f******** ********@read1. cgocable.net:
I've been using AceHTML for years, and have always liked it, but the
latest version is full of bugs and crashes. Can anyone suggest a better
text editor with a similar feature list, and either free of very cheap?


I used Ace for a long time, too, and then I found HTML-Kit
<http://www.chami.com/html-kit> and I like it a lot better.

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Jul 24 '05 #8
On Tue, 17 May 2005 05:33:34 GMT, Adrienne <ar********@sbc global.net>
wrote:
Gazing into my crystal ball I observed "Joe Blow" <Jo*@Blow.com > writing
in news:_f******** ********@read1. cgocable.net:
I've been using AceHTML for years, and have always liked it, but the
latest version is full of bugs and crashes. Can anyone suggest a better
text editor with a similar feature list, and either free of very cheap?


I used Ace for a long time, too, and then I found HTML-Kit
<http://www.chami.com/html-kit> and I like it a lot better.


You should be an agent for them, Adrienne. It's a bit complicate for
the newbies, though.

BB
--
www.kruse.co.uk/ se*@kruse.demon .co.uk
seo that watches the river flow...
--
Jul 24 '05 #9
Gazing into my crystal ball I observed Big Bill <kr***@cityscap e.co.uk>
writing in news:pt******** *************** *********@4ax.c om:
On Tue, 17 May 2005 05:33:34 GMT, Adrienne <ar********@sbc global.net>
wrote:
Gazing into my crystal ball I observed "Joe Blow" <Jo*@Blow.com > writing
in news:_f******** ********@read1. cgocable.net:
I've been using AceHTML for years, and have always liked it, but the
latest version is full of bugs and crashes. Can anyone suggest a better
text editor with a similar feature list, and either free of very cheap?


I used Ace for a long time, too, and then I found HTML-Kit
<http://www.chami.com/html-kit> and I like it a lot better.


You should be an agent for them, Adrienne. It's a bit complicate for
the newbies, though.


Actually, for the OP, it should fit like an old glove, albeit, an old glove
with new enhancements.

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Jul 24 '05 #10

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

Similar topics

48
4660
by: Zenobia | last post by:
Recently I was editing a document in GoLive 6. I like GoLive because it has some nice features such as: * rewrite source code * check syntax * global search & replace (through several files at once) * regular expression search & replace. Normally my documents are encoded with the ISO setting. Recently I was writing an XHTML document. After changing the encoding to UTF-8 I used the
43
3800
by: Vladimir | last post by:
Method UnicodeEncoding.GetMaxByteCount(charCount) returns charCount * 2. Method UTF8Encoding.GetMaxByteCount(charCount) returns charCount * 4. But why that? Look: /* Each Unicode character in a string is defined by a Unicode scalar value, also called ...
6
18770
by: jmgonet | last post by:
Hello everybody, I'm having troubles loading a Xml string encoded in UTF-8. If I try this code: ------------------------------ XmlDocument doc=new XmlDocument(); String s="<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?><a>Schönbühl</a>"; doc.LoadXml(s); doc.Save("d:\\temp\\test.xml");
8
607
by: Demon News | last post by:
I'm trying to do a transform (Using XmlTransform class in c#) and in the Transform I'm specifying the the output xsl below: <xsl:output method="xml" encoding="UTF-8" indent="no"/> the resulting xml ends up with the following declaration: <?xml version="1.0" encoding="utf-16"?> changing the encoding to utf-16, is there something I'm doing wrong? Is it
4
1618
by: Mark | last post by:
Hi... Just noticed something odd... In old ASP if you had query parameters that were invalid for their encoding (broken utf-8, say), ASP would give you back chars representing the 8-bit byte value of the broken encoding, so you still got something for every input byte. This appears to have changed radically in ASP.Net, going down to the base System.Text.Encoding object. Now, it appears to simply vaporize bytes that don't fit in the...
2
5611
by: lprisr | last post by:
Hi, I have double byte characters in the content that I am returning using Web Services. However, the encoding in the xml file returned by Web Services is utf-8 and I am unable to read the content, not even by changing browser encoding setting to the appropriate one. I implemented SoapExtension (called EncodingExtension) to rewrite the xml to change the encoding="utf-8" to encoding="windows-1252" in BeforeDeserialize SoapMessage...
4
2353
by: shreshth.luthra | last post by:
Hi All, I am having a GUI which accepts a Unicode string and searches a given set of xml files for that string. Now, i have 2 XML files both of them saved in UTF-8 format, having characters of different language. Although both of them are having UTF-8 as BoM, but only first file is having UTF-8 defined in XML declration at the top of the XML file as
3
5496
by: mortb | last post by:
1. How do I determine which encoding a xmldocument or xmlreader uses when opening a document? I'm not just talking about the <?xml encoding="utf-8"?attribute, but the actual encoding of the characters in the underlying stream. 2. How do I make sure that the encoding of my created xmldocument or xmlwriter is in utf-8? Thanks! /mortb
23
5037
by: Allan Ebdrup | last post by:
I hava an ajax web application where i hvae problems with UTF-8 encoding oc chineese chars. My Ajax webapplication runs in a HTML page that is UTF-8 Encoded. I copy and paste some chineese chars from another HTML page viewed in IE7, that is also UTF-8 encoded (search for "china" on google.com). I paste the chineese chars into a content editable div. My Ajax webservice compiles an XML where the data from the content editable div is...
8
2687
by: Erwin Moller | last post by:
Hi group, I could use a bit of guidance on the following matter. I am starting a new project now and must make some decisions regarding encoding. Environment: PHP4.3, Postgres7.4.3 I must be able to receive forminformation and store that in a database and later produce it on screen on the client (just plain HTML).
0
10861
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, 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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10560
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10262
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 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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7797
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6985
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5659
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5832
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4466
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
2
4027
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.