What charset am I using?
I went here: http://validator.w3.org/ to validate a page and it said
"Sorry, I am unable to validate this document because on line 120 it contained one or more bytes that I cannot interpret as utf-8 (in other words, the bytes found are not valid values in the specified Character Encoding". I don't have any Character Encoding specified so how and where do I specify that? Also, how can I find line 120? |
http://validator.w3.org/docs/help.html#faq-doctype
http://validator.w3.org/docs/help.html#faq-charset And if you turn off word-wrapping in your text editor, you can just open the html page and count down to line 120. Unless your text editor provides line counts, and then you can use that to go right to that line. |
Thanks Simon. I used this:
and but got 8 errors. It didn't like my topmargin, background,s bordercolordarks, bordercolorlights and form (for my warning) If "charset=iso-8859-1" is the wrong charset, which one should I use? |
I don't think it has anything to do with your character set. What you're using (iso-889-1) is pretty standard.
It's really your DOCTYPE that stands up and calls out what standards *you* are saying that you're following. Regarding DOCTYPE, I'd suggest using this intead of the HTML 4.0 one you're using now: "http://www.w3.org/TR/html4/loose.dtd"> Now, about those errors... - topmargin is/was an IE-only attribute and is deprecated in favor of using css to control margins. - background is also deprecated and the image should be spec'd in css. - bordercolordarks, bordercolorlights only work in IE and Microsoft even suggest you don't use them any more. - form: this one may have more to do with how you're using the form tag but I'd have to see your page to be sure. A guide to which tags have been deprecated is here. |
Quote:
I can use CSS for everything else. The form is used at the beginning of my warning message. Pust it in a nice little scrollable box: |
Okay, there's the problem.
- Element “ |
Thanks Simon, that took care of everything. The bordercolor thing is in the recip's from some link lists. When I validate they show up as problems. That won't affect anything will it?
|
You've just found one more good reason to begin working on making your own custom recips tables. Not only will you be able to submit each version of your free site to more link lists, but you won't need to use any of those attributes anymore.
Aside from that you just have to accept that you have those pieces of code that don't validate, but you know your page is good code except for those bits. |
Just a few quick comments:
Be careful and look in your httpd.conf at what charset you have it set to. I ran in to a case with my site where I had it set to UTF-8 and it actually had a higher precedence (or at least conflicted) with the iso-8859-1 that I had in my meta tags. The validator picked that up on my site when it was happening. Also, about iso-8859-1: be careful when you compose pages that you give some thought if you hope to maintain compatibility with it. iso-8859-1 does have some special chars which you might overlook when writing you html with a text editor (I know I have). These chars are: & which needs to be & in your html, ' needs to be " and a few others that you need to be aware of. If you're using php for text output you can use htmlspecialchars (http://us2.php.net/manual/en/functio...ecialchars.php) to take care of the encoding for you. |
Quote:
Quote:
Quote:
|
Quote:
I'm a straight up text link recip submitter - have been from the start. I highly recommend it. |thumb Probably best to talk to your host about the httpd.conf file. It's one of those Apache configuration files. |
Quote:
|
All times are GMT -4. The time now is 03:10 PM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc