Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8549601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:45:11+00:00 2026-06-11T13:45:11+00:00

An example HTML document retrieved over HTTP lacks: a HTTP Content-Type header a HTML

  • 0

An example HTML document retrieved over HTTP lacks:

  • a HTTP Content-Type header
  • a HTML <meta charset="<character encoding>" />
  • a HTML <meta http-equiv='Content-Type' content='Type=text/html; charset=<character encoding>'>

With regards to HTML5, is a default, for example UTF-8, assumed as the character encoding? Or is it entirely up the application reading the HTML document to choose a default?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T13:45:13+00:00Added an answer on June 11, 2026 at 1:45 pm

    The charset is determined using these rules:

    1. User override.
    2. An HTTP “charset” parameter in a “Content-Type” field.
    3. A Byte Order Mark before any other data in the HTML document itself.
    4. A META declaration with a “charset” attribute.
    5. A META declaration with an “http-equiv” attribute set to “Content-Type” and a value set for “charset”.
    6. Unspecified heuristic analysis.

    …and then…

    1. Normalize the given character encoding string according to the Charset Alias Matching rules defined in Unicode Technical Standard #22.
    2. Override some problematic encodings, i.e. intentionally treat some encodings as if they were different encodings. The most common override is treating US-ASCII and ISO-8859-1 as Windows-1252, but there are several other encoding overrides listed in this table. As the specification notes, “The requirement to treat certain encodings as other encodings according to the table above is a willful violation of the W3C Character Model specification.”

    But the most important thing is:

    You should always specify a character encoding on every HTML document, or bad things will happen. You can do it the hard way (HTTP Content-Type header), the easy way (<meta http-equiv> declaration), or the new way (<meta charset> attribute), but please do it. The web thanks you.

    Sources:

    • http://blog.whatwg.org/the-road-to-html-5-character-encoding
    • http://www.whatwg.org/specs/web-apps/current-work/multipage/parsing.html#determining-the-character-encoding
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using the jQuery spinner tool found here: http://btburnett.com/spinner/example/example.html When I try using
If i load a html document in to a div tag for example, is
I'm having problems doing the Database example from PhoneGap. http://docs.phonegap.com/phonegap_storage_storage.md.html#openDatabase The Problem is, when
Is it possible to have one controller use another? For example: This HTML document
In PHP how can I get all link from a HTML document. For example:
I want to use PHP to replace javascript functions in HTML documents. For example:
Permission denied for <http://example.com> to get property HTMLDocument.body from http://www.example.com . var c =
Given an example html string <table> <tr> <td class=td height=25>Upstream Power</td> <td class=td>25.2 dBmV</td>
ASP.NET MVC can generate HTML elements using HTML Helpers, for example @Html.ActionLink() , @Html.BeginForm()
I would like to translate or 301-redirect urls such as: www.domain.com/example.html to www.domain.com/example Here

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.