Link to home
Start Free TrialLog in
Avatar of DanishCoder
DanishCoderFlag for Denmark

asked on

Meta Charsets in HTML5

Dear experts,

In HTML5, normally I translate my existing code to this:

   
<meta charset="iso-8859-1"/>

Open in new window


In xhtml strict, previously I would use:

   
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>

Open in new window


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"/> -->

Open in new window


Does that means that I'm not supposed to use other values than utf-8?

Thanks for your help!
DanishCoder
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

What Validator?
Avatar of DanishCoder

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.
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.
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
Æ, æ: &AElig;, &aelig;
Ø, ø: &Oslash;, &oslash;
Å, å: &Aring;, &aring;
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial