View Full Version : Validation issue
05-19-2007, 12:29 AM
I'm trying to validate this page
but it keeps coming up with this error message, it doesn't make any sense to me, does anyone know what it means? There are no odd characters on the line specified.
Sorry, I am unable to validate this document because on line 238, 258, 293 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.
05-19-2007, 12:44 AM
<?xml version="1.0" encoding="utf-8" ?>
As its messing up IE6 putting into quirks mode. If you've wondered why you had so many bugs in IE6 the above reason is why.
As not being able to validate this most of the time due to a lack of a meta tag that specifies the content-type. Add this in between your head tags somewhere
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
05-19-2007, 01:00 AM
Nope, still has the same problem.
05-19-2007, 01:19 AM
What are you using to edit your code? The new line characters your editor creates seem to be causing the issue.
05-19-2007, 02:12 AM
Dreamweaver. But it's templates that are compiled from a database.
05-19-2007, 02:20 AM
Hmm I did a view source of your code in Firefox, copy and pasted it into dreamweaver and then revalidated and it doesn't get that error though you do have about 187 coding errors.
05-19-2007, 02:46 AM
I'm trying to figure out where those characters are coming from, is there anyway to remove them with PHP?
05-19-2007, 02:52 AM
your code has many incorrect usages.
is your most bizarre attempt. it's a cross between
" for quotes
& for an ampersand.
in other cases you are using apostrophes, right/left quotes without the correct character set replacement.
the 'amp quot' is used on one of the lines the validator disputes. on another you are using 1/4 symbol incorrectly
¼ is the correct usage.
other than this basic nit-picking, I cannot see anything which would properly cause such an error.
one thing though, if you switch the character set encoding to western europe
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> over utf-8 you will receive a functioning validation screen displaying erroneous lines - all 206 of them.
hope that helps
05-19-2007, 02:57 AM
Yeah, a lot of this is compiled from a database in mass, so coding errors are abounding, the main issue is getting it to show me the errors so I can fix them.
Thank you for that, it is now at least attempting to validate it.
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.