Jump to content

[SOLVED] trouble with character encoding tag


Jago6060

Recommended Posts

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?

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.

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.