Meta Charsets in HTML5

DanishCoder
DanishCoder used Ask the Experts™
on
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
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Dave BaldwinFixer of Problems
Most Valuable Expert 2014

Commented:
What Validator?

Author

Commented:
Sorry...it was the W3C validator: http://validator.w3.org/
Dave BaldwinFixer of Problems
Most Valuable Expert 2014

Commented:
How are you using it to check?  I have never seen the Validator re-write any code.
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Author

Commented:
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).
Dave BaldwinFixer of Problems
Most Valuable Expert 2014

Commented:
Ok, I couldn't get a response from it either.

Author

Commented:
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;
Fixer of Problems
Most Valuable Expert 2014
Commented:
I understand about charsets and the entity codes should work for either language... unless something is converting them first and then "recognizing" them as a different charset.

Author

Commented:
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?
Dave BaldwinFixer of Problems
Most Valuable Expert 2014
Commented:
I would never say that anything in web design is without problems.  To know if your code is working, you must test it in the browsers that you expect to use it.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial