One thing I've not understood (or not really bothered getting around to researching if truth be told :roll: ) is the character encoding mismatch I often get when validating against XHTML (in this case 1.1, thanks to a friendly push from Stu ). The mismatch does not stop code validating, but is a warning.
How does this occur? To the best of my knowledge, the HTML code only specifies utf-8. Where does the HTTP header info come from? (The server?) Here's the warning (which I'm sure you've come across yourselves from time-to-time)...
Character Encoding mismatch! The character encoding specified in the HTTP header (iso-8859-1) is different from the value in the <meta> element (utf- . I will use the value from the HTTP header (iso-8859-1) for this validation.
... just to inform you, I use BBEdit on OS X, and have had issues with it's encoding settings in the past.
XHTML Validation encoding query...
Hi
What validator do you use?
Mine always seems to pass:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <title>New document</title> </head> <body> <div>hello</div> </body> </html>
or this for 1.1 (slightly different html header, lang tag not allowed):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <title>New document</title> </head> <body> <div>hello</div> </body> </html>
Just checked both to make sure
How does yours differ?
Trevor
XHTML Validation encoding query...
The same on both. I've had this on XHTML Transitional as well. So, I'm reckoning it's either something to do with BBEdit's native file encoding, or a configuration in my Apache server.
XHTML Validation encoding query...
MMM
Makes me glad all over to have a PC.
I use WebCoder v4 (soon to be v5 [beta out in a few days]) which is by far the best coding package I have used, and it's free.
I used to use Arachnophilia (which is java-based) but my main machine refuses point blank to allow Sun Java to install or run. It (like WebCoder) uses HTML Tidy, which (at least on my machine) doesn't like xhtml 1.1
Ah well, I now only use the online validator!
Trevor
XHTML Validation encoding query...
Makes me glad all over to have a PC.
I'll ignore that comment :roll:
I do have a PC as well (one with Linux and one with XP Pro for a current ASP.NET job)... I use NoteTab Pro on Windows, which is okay. I may try your software suggestion though. However, you will not pry me away from my precious Mac for less than 99.5% of my work
XHTML Validation encoding query...
I've found the problem. It was the configuration of the Apache server. A simple fix to my httpd.conf file fixed it (it was default to ISO-blah blah rather than UTF-8). All is now cured.
XHTML Validation encoding query...
Thanks for Web Coder tip Trev! A fantastic application (been using it all week).