Forum Moderators: open

Message Too Old, No Replies

Character encoding question: Please help

         

getxb

4:00 pm on Jan 24, 2008 (gmt 0)

10+ Year Member



While checking the character encoding of the main index page of my site (example.com/index.html) I saw that in the meta tags we have specified charset=UTF-8 Now while checking the Page Info (rt click > Page Info > General Tab) in Mozilla Firefox I found this .. Encoding: UTF-8 which is OK.

I browsed to other inner pages (example.com/test/ex.html) and I checked the Page Info I found this .. Encoding: ISO-8859-1 though in the main index page (example.com/index.html) it showed UTF-8

How to fix this? Can anyone please help me out with this.

Fotiman

4:08 pm on Jan 24, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Check your inner page to see if it has a meta tag. You probably want it to have something like this:

<meta http-equiv="Content-Type" content="text/html; charset:utf-8">

That should appear as the first item in your <head>.

getxb

4:28 am on Jan 25, 2008 (gmt 0)

10+ Year Member



Surprisingly none of these inner pages has any meta tags specifying character encoding. Does this mean that it is taking the default character encoding of the server which may be ISO-8859-1 as is seen from the Firefox Page Info checker?

Madenio

8:29 am on Jan 25, 2008 (gmt 0)

10+ Year Member



Nope, that means, that if the character set isn't specified within the meta tags, the browser sets it according to default charset for your country (or the set one within the browser settings.) The server (even the database) does not matter in this case.