Solved

Meta Charsets in HTML5

Posted on 2011-09-03
9
731 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Is Your DevOps Pipeline Leaking?

Is your CI/CD pipeline a hodge-podge of randomly connected tools? You’ve likely got a tool to fix one problem & then a different tool to fix another, resulting in a cluster of tools with overlapping functionality. Learn how to optimize your pipeline with Gartner's recommendations

 

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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Why is my $_POST not going to results page 10 68
A responsive image gallery using flexbox 6 78
Diff of the day 2 41
Editing .asp website 5 30
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
There are many software programs on offer that will claim to magically speed up your computer. The best advice I can give you is to avoid them like the plague, because they will often cause far more problems than they solve. Try some of these "do it…
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…
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.

734 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