views:

41

answers:

2

When I try to validate a certain page I get the below error:

Sorry, I am unable to validate this document because on line 136 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 "\xFF" does not map to Unicode

What exactly does this mean and how can I find out what character is causing the problem?

The page is generated dynamically in PHP and a bit large and I am not sure what to look for.

EDIT:

I get missing character symbols for umlauts and french/spanish accented vowels.

+2  A: 

Does your text editor save the file with BOM? If so unset that setting and resave it. I think this is it.

Otherwise try going to line 136, possibly with a different editor and delete any weird square symbols, or whole lines.

meder
Line 194 is extracurricular? (edit: oh maaaan no fair, you corrected it!)
Peter Ajtai
I am using dreamweaver so I am not sure... I tried with BOM off and ON same thing... I seem to get missing character symbols in Chrome for umlaut characters and accented vowels in french/spanish.
ian
link to source?
meder
A: 

I fixed this with htmlentities() in PHP to make sure the umlaut and accented characters are displayed correctly in html.

ian
Using HTML entities to display UTF-8 characters in a UTF-8 document is unnecessary.
Álvaro G. Vicario
But... it fixes my problem?
ian