Solved

Meta Charsets in HTML5

Posted on 2011-09-03
9
730 Views
Last Modified: 2013-12-13
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
0
Comment
Question by:DanishCoder
  • 5
  • 4
9 Comments
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 36478701
What Validator?
0
 

Author Comment

by:DanishCoder
ID: 36478922
Sorry...it was the W3C validator: http://validator.w3.org/
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 36478943
How are you using it to check?  I have never seen the Validator re-write any code.
0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 

Author Comment

by:DanishCoder
ID: 36478983
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
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 36478989
Ok, I couldn't get a response from it either.
0
 

Author Comment

by:DanishCoder
ID: 36478999
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
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 400 total points
ID: 36479005
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
 

Author Comment

by:DanishCoder
ID: 36487487
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
 
LVL 83

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 400 total points
ID: 36490013
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

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Healthcare organizations in the United States must adhere to the guidance of both the HIPAA (Health Insurance Portability and Accountability Act) and HITECH (Health Information Technology for Economic and Clinical Health Act) for securing and protec…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question