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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.