Forum Moderators: open
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>Page titel</title> <meta http-equiv="expires" content="Sat, 01 Jan 2005" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="Content-Language" content="de" /> <meta name="Content-Language" content="de" /> <link rel="StyleSheet" type="text/css" href="../style/font-style.css" /> </head> <body> </body> </html> One of the documents validates as XHTML 1.0 Transitional, with the other one I get the result "XHTML 1.0 Transitional (Tentatively Valid)!" because of character encoding mismatch.
I don't undderstand why it validates with one document (actually 90% of all documents of the site) but not with the other. Any ideas?
The character encoding specified in the XML declaration (utf-8) is different from the value in the <meta> element (iso-8859-1). I will use the value from the XML declaration (utf-8) for this
<?xml version="1.0" encoding="ISO-8859-1"?> I still don't understand why the validator sees this with only 5 or 6 documents and lets it pass on all the others. I guess it's a bug (or a feature)