nicarcola Posted April 13, 2007 Share Posted April 13, 2007 When I validate a page from my site i get the following message. I need encoding utf-8. But how do I realize that or how do I influence the HTTP header??The character encoding specified in the HTTP header (iso-8859-1) is different from the value in the <meta> element (utf-8). I will use the value from the HTTP header (iso-8859-1) for this validation. Link to comment Share on other sites More sharing options...
Jonas Posted April 13, 2007 Share Posted April 13, 2007 Are you saying that the page is sending two different encodings? Tried changing the <meta> element? Link to comment Share on other sites More sharing options...
nicarcola Posted April 13, 2007 Author Share Posted April 13, 2007 I am not saying anything. This text (The character encoding specified in the HTTP header (iso-8859-1) is different from the value in the <meta> element (utf-8). I will use the value from the HTTP header (iso-8859-1) for this validation) comes from the validator.This is the page I validated: http://www.test01.evaco.nl/Huizenruilen/testutf8.php (XHTML) Link to comment Share on other sites More sharing options...
boen_robot Posted April 13, 2007 Share Posted April 13, 2007 You can use the header function to specify another encoding in the HTTP header, like this: <?phpheader('Content-type: text/html;charset=utf-8');?> or you can select the meta element somehow and change it's value to conform with the HTTP header. I didn't exactly understood which one of the two you wanted to use, but anyhow, you should have a single encoding everywhere. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now