| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
shiro
Join Date: Aug 2007
Location: Yokohama, Japan
Posts: 2,563
|
xhtml strict and CHARSET
I am coding my page in xhtml strict. When validating it, I got an error, as I had included a charset. Is there another way to refer to the charset with xhtml strict? Here is the code I am using: Code:
The problem is in the last line int he meta tag where I have included the charset. Should I just leave this out? note: I am programming a Japanese site which is why the charset is set to shift_jis. That's not an error. |
|
|
|
|
|
#5 (permalink) | |
|
gotsa a malanga!
Join Date: Apr 2006
Location: ottawa, canada
Posts: 489
|
Quote:
must be a typo somewhere then. copy and paste exactly what i had into your document then validate. it should go through (i tested it already). you most definitely can use a charset with xhtml strict. would be silly if you couldn't. |
|
|
|
|
#7 (permalink) |
|
stephen eighmey
Join Date: Oct 2006
Location: earth
Posts: 152
|
don't forget about the mime type along with the character set... since you're validating as xhtml strict you'll probably want to serve your pages with the correct mime type, which, if the browser supports it, is application/xhtml+xml. you can do this very nicely if you have dynamic scripting capability. |
|
![]() |