Page 1 of 1

Encoding Problems

Posted: Tue Jul 17, 2007 9:35 am
by shiznatix
Hey guys. Ok I am trying to display some different characters on this website. Actually, the letters are Finnish and Estonian characters so basically its o, a, u with dots and squiggles over them.

Now if you look at this page: http://tallinn.rakeback.com/about/

You will notice that there is an unknown character in the address and bank section. But! If you go here: http://tallinn.rakeback.com/omahakoulu everything displayed properly.

The encoding is the same. I send this header for every page: Content-Type: text/html; charset=utf-8
and I use this HTML header: <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

So why does it show up on one page and not the other?

Posted: Tue Jul 17, 2007 9:46 am
by volka
Tornim?e 7-11
Which character do you expect instead of the ?

Posted: Tue Jul 17, 2007 9:59 am
by shiznatix
volka wrote:
Tornim?e 7-11
Which character do you expect instead of the ?
ä - an a with 2 dots.

Posted: Tue Jul 17, 2007 10:25 am
by mwasif
It is strange as i can clearly see the correct characters in HTML source. It seems to be a problem when ä and e come together. In the 2nd link, this sequence is not repeated.

Can you confirm this?
äe

Posted: Tue Jul 17, 2007 12:39 pm
by volka
Looks like although the webserver claims the data utf-8 encoded it is iso-8859-1
It sends the bytes (in hex): 54 6F 72 6E 69 6D E4 65
which is the latin-1 encoding for Tornimäe

Posted: Tue Jul 17, 2007 4:26 pm
by shiznatix
volka wrote:Looks like although the webserver claims the data utf-8 encoded it is iso-8859-1
It sends the bytes (in hex): 54 6F 72 6E 69 6D E4 65
which is the latin-1 encoding for Tornimäe
So basically I have to change the encoding of the file itself?

Posted: Tue Jul 17, 2007 5:07 pm
by volka
With charset=iso-8859-1 it seems to be ok.

Posted: Wed Jul 18, 2007 2:07 am
by shiznatix
Ok so I just coppied the html from the template that is called on that page, then deleted the template, created a new file and pasted the content into the new file. Now it works.