DanishCoder
asked on
Meta Charsets in HTML5
Dear experts,
In HTML5, normally I translate my existing code to this:
In xhtml strict, previously I would use:
Because I am not writing this in English, but Danish.
When validating my code, the Validator will render my code like this:
Does that means that I'm not supposed to use other values than utf-8?
Thanks for your help!
DanishCoder
In HTML5, normally I translate my existing code to this:
<meta charset="iso-8859-1"/>
In xhtml strict, previously I would use:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
Because I am not writing this in English, but Danish.
When validating my code, the Validator will render my code like this:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<!-- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/> -->
Does that means that I'm not supposed to use other values than utf-8?
Thanks for your help!
DanishCoder
What Validator?
ASKER
Sorry...it was the W3C validator: http://validator.w3.org/
How are you using it to check? I have never seen the Validator re-write any code.
ASKER
I choose "Validate by direct input" and in "More options" i choose "Validate Full Document" > "HTML5" or I set "More options" later (I'm actually having some problems with their server's response today).
Ok, I couldn't get a response from it either.
ASKER
About the western European language:
ISO: http://en.wikipedia.org/wiki/ISO/IEC_8859
UTF: http://en.wikipedia.org/wiki/UTF-8
By the way, I'm ALWAYS using special codes for the 3 special letters we have
Æ, æ: Æ, æ
Ø, ø: Ø, ø
Å, å: Å, å
ISO: http://en.wikipedia.org/wiki/ISO/IEC_8859
UTF: http://en.wikipedia.org/wiki/UTF-8
By the way, I'm ALWAYS using special codes for the 3 special letters we have
Æ, æ: Æ, æ
Ø, ø: Ø, ø
Å, å: Å, å
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I don't hope that any browsers convert it - that's also the reason I want to use iso-8859-1.
But if they are converted to the codes above, it should not be a problem, right?
If so, I can use UTF-8 without problems, no matter if the website is Danish or English, right?
But if they are converted to the codes above, it should not be a problem, right?
If so, I can use UTF-8 without problems, no matter if the website is Danish or English, right?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.