Jago6060 Posted May 28, 2008 Share Posted May 28, 2008 I'm trying to use the W3C html validator but is says it can't do it because I don't have a character encoding type. here is the line with the character encoding in it. <link rel="stylesheet" type="text/css" href="hcfl.css" charset="utf-8" /> any ideas what may be wrong? Quote Link to comment https://forums.phpfreaks.com/topic/107574-solved-trouble-with-character-encoding-tag/ Share on other sites More sharing options...
peranha Posted May 28, 2008 Share Posted May 28, 2008 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> it usually means something like that and will go in the head of the page. Quote Link to comment https://forums.phpfreaks.com/topic/107574-solved-trouble-with-character-encoding-tag/#findComment-551387 Share on other sites More sharing options...
Jago6060 Posted May 28, 2008 Author Share Posted May 28, 2008 Thanks. I put that line in and tried to revalidate it, and it says there is a character on line 46 of the index.html page that cannot be encoded to utf-8. <center> <br /> <br /> “Healthy Concepts for Life” (HCL)<br /> Do those nutrition labels look foreign to you?<br /> Are you ready to make some healthy changes in your life?<br /> Do you want to learn how to make better choices when purchasing food?<br /> Do you want to eat healthier, but don’t know what’s healthy and what’s not?<br /> Do you want to look and feel better about yourself, but don’t know where to begin?<br /> <br /> If you answered yes to any of the questions above, then HCL can help! Click on services to find out how!<br /> </center> Those are the lines where the error should be contained. I wasn't sure which line is technically #46. Quote Link to comment https://forums.phpfreaks.com/topic/107574-solved-trouble-with-character-encoding-tag/#findComment-551391 Share on other sites More sharing options...
haku Posted May 28, 2008 Share Posted May 28, 2008 Your problem may lie in your double quotes. They are the only ones I can see that may potentially not be contained within utf-8. Try deleting the quotes and validating just to see if that's where your problem is. If it is, you will have to use a more standard set of quotes rather than the one's that point inwards to the word they are containing. Quote Link to comment https://forums.phpfreaks.com/topic/107574-solved-trouble-with-character-encoding-tag/#findComment-551395 Share on other sites More sharing options...
Jago6060 Posted June 3, 2008 Author Share Posted June 3, 2008 Well after much time of trial and error I've finally figured out...the error. The code I had was originally written in Notepad++ and copy and pasted to the web host. So I deleted and rewrote that block of text and that fixed it. Quote Link to comment https://forums.phpfreaks.com/topic/107574-solved-trouble-with-character-encoding-tag/#findComment-556678 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.