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 6470359
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:06:06+00:00 2026-05-25T06:06:06+00:00

I do not have the link anymore as it was a few months back,

  • 0

I do not have the link anymore as it was a few months back, but there was a great and detailed article about setting the charset of the body being sent to the user-agent.

The gist of the article was that when possible, send it via the content-type header since the user-agents parser will know before the body begins being parsed that it is (for example) utf-8, etc.

Sending it via meta tag means it has to wait for said meta tag to be found, then return to the top of document and begin reparsing the document again.

So for quite a while now, we have been sending the charset via content-type header, like so (in PHP anyways):

header('Content-type: text/html; charset=utf-8');

All works great. As far as we can see everything is as should be in all the commonly used user-agents.

My question is this, as a backup / fail-safe / just in case, should we still send the charset meta tag? Will sending it again using the meta tag defeat the purpose of sending it via the content-type header?


edit: This is not the exact article, but re-iterates the point ( http://code.google.com/speed/page-speed/docs/rendering.html#SpecifyCharsetEarly ) that when possible, send charset via header.

  • 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-05-25T06:06:07+00:00Added an answer on May 25, 2026 at 6:06 am

    Yes, I always try to do this since it makes the document more portable. E.g. It will display the same way when viewing from a local file, as it does when delivered via a web server.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following JavaScript code: Link In which the function makewindows does not
I have a sitemap that has a link for when a user is not
On my website, I have several html files I do not link off the
When my laptop wiped a few months back, I had to re-install, and thinking
Did not have luck with these examples: Javascript File remove Javascript FSO DeleteFile Method
I'd rather not have to resort to calling the command line. I'm looking for
VB 6.0 does not have any global handler.To catch runtime errors,we need to add
I have a User class which may or may not have an associated Department.
Sybase db tables do not have a concept of self updating row numbers. However
So Google Analytics does not have an API that we can use to get

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.