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
DanishCoderAsked:
Who is Participating?
 
Dave BaldwinConnect With a Mentor Fixer of ProblemsCommented:
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.
0
 
Dave BaldwinFixer of ProblemsCommented:
What Validator?
0
 
DanishCoderAuthor Commented:
Sorry...it was the W3C validator: http://validator.w3.org/
0
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

 
Dave BaldwinFixer of ProblemsCommented:
How are you using it to check?  I have never seen the Validator re-write any code.
0
 
DanishCoderAuthor 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).
0
 
Dave BaldwinFixer of ProblemsCommented:
Ok, I couldn't get a response from it either.
0
 
DanishCoderAuthor 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;
0
 
DanishCoderAuthor 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?
0
 
Dave BaldwinConnect With a Mentor Fixer of ProblemsCommented:
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.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.