Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Pb with characters ISO-8859-1

Reply
Thread Tools

Pb with characters ISO-8859-1

 
 
=?iso-8859-1?B?VHNjaHXf?=
Guest
Posts: n/a
 
      10-11-2007
Hi,

I have a personal site (www.excel-exercice.com) but I have a big pb
with the special characters like é à (espacially in french)
I have write in my header <meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1" lang="fr"> but it doesn't
work.
You can see the pb by visiting the site and change the language (by
clicking on the flag)

How could give me an explanation ?

Thx

 
Reply With Quote
 
 
 
 
Ben C
Guest
Posts: n/a
 
      10-11-2007
On 2007-10-11, Tschuß <> wrote:
> Hi,
>
> I have a personal site (www.excel-exercice.com) but I have a big pb
> with the special characters like é à (espacially in french)
> I have write in my header <meta http-equiv="Content-Type"
> content="text/html; charset=iso-8859-1" lang="fr"> but it doesn't
> work.


I doubt that the lang attribute on a meta element does anything (since
it has no content, and isn't rendered). But never mind, that's not the
main problem here.

> You can see the pb by visiting the site and change the language (by
> clicking on the flag)
>
> How could give me an explanation ?


It's because the server is delivering those pages with this header:

Content-Type: text/html; charset=UTF-8

The server header trumps the meta element.

Your text does appear to be encoded in ISO-8859-1, not UTF-8.

So, two solutions: either change the server to put charset=ISO-8859-1 in
the header instead, or transcode your pages so they are UTF-8 (and
change or delete the meta elements-- it will still work if you don't,
but will cause confusion in future to anyone reading the source).
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
pointers to constant characters and constant pointers to characters sam_cit@yahoo.co.in C Programming 4 12-14-2006 11:10 PM
How to convert HTML special characters to the real characters with a Java script Stefan Mueller HTML 3 07-23-2006 10:09 PM
Reversible replacement of whitespace characters with visible characters Micah Python 2 06-02-2006 09:55 PM
Convert Raw Text Escaped Characters to Characters nicholas.wakefield@gmail.com Java 2 07-11-2005 09:17 PM
help-> xslt transformation to pdf (chinese characters changed to # characters) omegaman XML 1 09-21-2004 10:44 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57