Markup Validation Error

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Sasni
Regular
Posts: 18
Joined: Wed Nov 10, 2010 9:36 pm
Location: Poland
Contact:

Markup Validation Error

Post 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?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Markup Validation Error

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Sasni
Regular
Posts: 18
Joined: Wed Nov 10, 2010 9:36 pm
Location: Poland
Contact:

Re: Markup Validation Error

Post by Sasni »

How did you check where is mistake ? And how can I do it without searching all files?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Markup Validation Error

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply