|
Posted by Mike on June 25, 2005, 4:21 am
Please log in for more thread options
http://www.calgarymike.com/content/fsbo.html
After having validated a couple of pages I'm completely stumped as to why I
get this message. I don't have a line counter in my program (Arachnophia)
and have counted manually, but I can't see a thing as to why I'm getting
this message.
Sorry, I am unable to validate this document because on lines 36, 44, 52,
60, 68, 75, 109, 126, 131, 144, 154, 160, 178, 244, 247, 257, 271, 287, 300,
320, 335, 357, 363, 369, 377, 385, 399, 435, 441, 446, 458 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). Please
check both the content of the file and the character encoding indication.
Any help would be appreciated.
|
|
Posted by David Ross on June 25, 2005, 12:16 am
Please log in for more thread options
Mike wrote:
>
> http://www.calgarymike.com/content/fsbo.html
>
> After having validated a couple of pages I'm completely stumped as to why I
> get this message. I don't have a line counter in my program (Arachnophia)
> and have counted manually, but I can't see a thing as to why I'm getting
> this message.
>
> Sorry, I am unable to validate this document because on lines 36, 44, 52,
> 60, 68, 75, 109, 126, 131, 144, 154, 160, 178, 244, 247, 257, 271, 287, 300,
> 320, 335, 357, 363, 369, 377, 385, 399, 435, 441, 446, 458 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). Please
> check both the content of the file and the character encoding indication.
>
> Any help would be appreciated.
When you get that message, above it is a box with the heading
"Revalidate With Options". Select the checkbox for Show Source and
then select the Revalidate button. You will then get the same
"Sorry, I am unable to validate this document" message. Underneath
that message will be a listing of your HTML with line numbers. The
lines indicated in the message will be replaced with
#### encoding problem on this line, not shown ####
You will have to compare that listing with the actual file on your
own computer. On your computer, the affected lines will contain
special characters that are not valid in the UTF-8 character set.
Replace those characters with the HTML 4.01 entity references. See
<URL:http://www.w3.org/TR/REC-html40/sgml/entities.html>. Use the
entity names with an ampersand (&) in front and a semi-colon (;) at
the end. Don't use the character references (the numeric form).
That is, for example, use © for the circled-C copyright symbol
instead of ©.
--
David E. Ross
<URL:http://www.rossde.com/>
I use Mozilla as my Web browser because I want a browser that
complies with Web standards. See <URL:http://www.mozilla.org/>.
|
|
Posted by Lorenz Haas on June 25, 2005, 6:52 am
Please log in for more thread options
Mike wrote:
> Any help would be appreciated.
Well, after "without listing it with a real estate agent.�" you have a mad
character, I don't know which. Just remove it, and wow, you won't have
troubles anymore.
Lorenz
|
|
Posted by Adrienne on June 25, 2005, 7:12 am
Please log in for more thread options
> Mike wrote:
>> Any help would be appreciated.
>
> Well, after "without listing it with a real estate agent.�" you have
> a mad character, I don't know which. Just remove it, and wow, you won't
> have troubles anymore.
>
> Lorenz
>
Possible quotation marks (the ones with the curly cues), or trademark, or
some other character. Often a word processing environment will put these
in. IIRC, Dreamweaver puts in TM badly and causes this problem.
--
Adrienne Boswell
http://www.cavalcade-of-coding.info Please respond to the group so others can share
|
|
Posted by Alan J. Flavell on June 25, 2005, 8:42 am
Please log in for more thread options
On Sat, 25 Jun 2005, Mike wrote:
> http://www.calgarymike.com/content/fsbo.html
>
> After having validated a couple of pages I'm completely stumped as
> to why I get this message.
You're claiming to be encoded in utf-8, but in fact that's not so.
If I force iso-8859-1 as the encoding there are 408 syntax errors
reported. If I force windows-1252 then there are 406 syntax errors
reported. You appear to be using (or trying to use) XHTML/1.0
Appendix C without understanding XHTML. My recommendation would be to
use HTML/4.01 unless and until you have an overwhelming reason to use
XHTML and know how to use it.
My hunch is that this thing is probably encoded in the proprietary
windows-1252 encoding (best avoided), but with so many other syntax
errors present it's hard to focus on the detail.
> Sorry, I am unable to validate this document because on lines 36,
> 44, 52, 60, 68, 75, 109, 126, 131, 144, 154, 160, 178, 244, 247,
> 257, 271, 287, 300, 320, 335, 357, 363, 369, 377, 385, 399, 435,
> 441, 446, 458 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). Please check both the content of
> the file and the character encoding indication.
Well, it told you exactly what was wrong and what to do. Unicode
security requirements make it a mandatory rule to reject documents
claiming to be utf-8 and failing to pass utf-8 sanity check, and I'd
say that is very wise. It's a bug in Mozilla/Firefox that it's
willing to have a try at displaying an invalid utf-8 document: it
ought to throw an alert first (before possibly offering to do a fixup
at the reader's own risk).
|
| Similar Threads | Posted | | problems tag img | January 23, 2007, 8:43 am |
| Problems with IE | February 19, 2008, 1:14 am |
| help with validation | July 30, 2004, 5:22 pm |
| validation | September 2, 2004, 8:15 am |
| validation | November 28, 2004, 3:12 am |
| Problems with iframe tag | September 14, 2004, 6:24 pm |
| problems with JavaScript | February 10, 2005, 5:32 pm |
| Google Bot problems? | March 9, 2005, 3:03 pm |
| Problems with DOCTYPES | April 1, 2005, 11:22 am |
| # giving me problems | May 5, 2005, 7:11 am |
|