CHARsets

liunx

Guest
I can't get this page to validate, because W3C says:<br />
<br />
<br />
I was not able to extract a character encoding labeling from any of the valid sources for such information. Without encoding information it is impossible to validate the document. The sources I tried are: <br />
<br />
The HTTP Content-Type field. <br />
The XML Declaration. <br />
The HTML "META" element. <br />
<br />
<br />
Where did I go wrong?<br />
<br />
<br />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><br />
<br />
<html><br />
<head><br />
<title>site</title><br />
<br />
<meta http-equiv="content-type" content="text/html; charset="Shift_JIS"><br />
<meta http-equiv="content-language" content="ja"><br />
<br />
<br />
Thanks,<br />
Gandalf<br />
:D<!--content--><meta http-equiv="content-type" content="text/html; charset="Shift_JIS"><br />
<br />
extra quote in there<!--content-->Never seen that character set either, is it valid?<!--content-->sure is entimp:<br />
<br />
Name: Shift_JIS (preferred MIME name)<br />
MIBenum: 17<br />
Source: This charset is an extension of csHalfWidthKatakana by<br />
adding graphic characters in JIS X 0208. The CCS's are<br />
JIS X0201:1997 and JIS X0208:1997. The<br />
complete definition is shown in Appendix 1 of JIS<br />
X0208:1997.<br />
This charset can be used for the top-level media type "text".<br />
Alias: MS_Kanji <br />
Alias: csShiftJIS<!--content-->Change this:<br />
<br />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><br />
<br />
to this:<br />
<br />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><br />
<br />
<br />
<br />
<br />
Change this:<br />
<br />
<meta http-equiv="content-type" content="text/html; charset="Shift_JIS"><br />
<br />
to this:<br />
<br />
<meta http-equiv="content-type" content="text/html; charset=Shift_JIS"><!--content-->Thanks for all of the replies!<br />
<br />
G<br />
:D<!--content-->What's wrong with this:<br />
<br />
Line 206, column 74: document type does not allow element "SCRIPT" here (explain...). <br />
<script language="JavaScript" type="text/javascript" src=http://www.htmlforums.com/archive/index.php/"inc/myWindow.js"> </script> <br />
<br />
<br />
Gandalf<br />
:D<!--content-->what is the page in question? hard to tell what you have above that or below that that might be causing the error.<!--content-->Well, now that you mention that the problem is probably because this line is after the </html> tag. It's a DHTML script and thats where I was supposed to put it.<br />
<br />
<br />
</body><br />
</html><br />
<script language="JavaScript" type="text/javascript" src=http://www.htmlforums.com/archive/index.php/"inc/FerantLib.js"> </script><br />
<script language="JavaScript" type="text/javascript" src=http://www.htmlforums.com/archive/index.php/"inc/myWindow.js"> </script> <br />
<br />
<br />
Gandalf<br />
:D<!--content-->huh? you should never have anything after the closing html tags.<br />
<br />
only hosts do that and then it is not done right as it wil never validate.<br />
<br />
put it in the head and it should work the same.<!--content-->script language="javascript"<br />
<br />
Has been depriciated.<br />
Remove that and stick with:<br />
<br />
script type="text/javascript"<br />
<br />
....Willy<!--content-->
 
Back
Top