Support » Themes and Templates » Strange validation erroer utf-8

  • Hi,

    I was validating my template and got a strange error message which is:

    Sorry, I am unable to validate this document because on line 95 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 “\xEA” does not map to Unicode

    The funny part is, when I copy the source and paste it manually it does not give me this error. And line 95 is empty, too.

    I cannot find the xEA anywhere. Anyone came across this error?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Maybe it’s a text gremlin (an invalid character acquired from copying and pasting)? These can look deceptively like regular spaces. Delete the empty line and replace any apparent spaces around it with actual keyboard spaces.

    I didn’t copy and paste anything. The empty line 95 shows only when I look at the html source code of the displayed page. And as I said, when I copy and paste this exact html source code to the W3C validator, it validates, no xEA whatsoever message

    It really does sound like a text gremlin (perhaps some sort of hidden line break or return character?), check for what appears to be a space at the end of the line preceding the empty line and delete it. Also try deleting the line break for that line and recreating it.

    For my WordPress editing, I use BBEdit on the Mac, and it has a very handy option to zap gremlins.

    Can you give me a link to the page so I can look at the source?

    Look at the lines above line 95. You must have an invalid character somewhere or a tag you haven’t closed or formulated correctly.

    again if you give me the link to the page I can sift through the code for you and find the error for you

    I am having a similar problem with my WordPress blog at http://www.joewessels.net

    I tried to validate my code and got this response from http://validator.w3.org :

    Sorry, I am unable to validate this document because on line 617 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 “\x92” does not map to Unicode

    Any suggestion(s) on how to fix this? I cannot figure out how to look at the code, for starters, which seems to be my problem.

    Thank you, in advance, for any help.

    There are different character sets that can be used within a web page depending on what language the website is in. Pages in Russian or Chinese use different letters and symbols than most western European languages, which includes English. The most common character set used by documents in English is UTF8

    You must have changed something on the page because I don’t get the same error from the W3C validator. Most of these kinds of errors are caused by embedded objects which were generated by some program or website, like FLASH, movies, etc. Most software or websites that generate code for you don’t generate valid code. You can usually hand code the same thing with half the amount of code.

    You do still have a lot of errors in the code. Quite a few are caused by copying HTML into an XHTML document, and therefore have tags that aren’t closed like some of your link tags in the <head> which need to be closed (like this <link rel="href..." />)
    There’s also no closing </head> tag in your page. Check that all elements are closed. Your CSS looks fine, no errors there. If you get stuck on something after cleaning up your code to the best of your ability feel free to ask for help.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Strange validation erroer utf-8’ is closed to new replies.