Page 1 of 1

Markup Validation Error

Posted: Wed Feb 23, 2011 11:37 am
by Sasni
Hi,
When I try checked on http://validator.w3.org/ my blog on http://www.sasni.eu, this shows me an error

Code: Select all

Sorry, I am unable to validate this document because on line 88 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.
The error was: utf8 "\xB3" does not map to Unicode
but line 88 in my index.php is:

Code: Select all

if (isset($serendipity['POST']['isMultiCat']) && is_array($serendipity['POST']['multiCat'])) {
    $is_multicat = true;
} else {
    $is_multicat = false;     // LINE 88
}
what's the problem?

Re: Markup Validation Error

Posted: Wed Feb 23, 2011 11:44 am
by garvinhicking
Hi!

It refers to the HTML output of your blog, what you can view inside your browser. NOT the file on the server.

The validator is complaining about some inline HTML comments, you might have done in your template's entries.tpl:

Code: Select all

<!-- ta linijka zosta�a dodana przezemnie -->
Make sure you save your .tpl files in UTF-8 encoding.

Regards,
Garvin

Re: Markup Validation Error

Posted: Wed Feb 23, 2011 12:05 pm
by Sasni
How did you check where is mistake ? And how can I do it without searching all files?

Re: Markup Validation Error

Posted: Wed Feb 23, 2011 12:13 pm
by garvinhicking
Sasni wrote:How did you check where is mistake ? And how can I do it without searching all files?
I viewed the source in my browser, went to the line number that the validator mentioned, and saw the missing byte mark.

Now in line 477 you also have an invalid statement.

Simply edit all the *.tpl files you edited earlier on and re-save them in UTF-8 encoding with your editor.

Regards,
garvin