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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T16:42:14+00:00 2026-05-16T16:42:14+00:00

When including HTML entities in an HTML document, do the entities need to be

  • 0

When including HTML entities in an HTML document, do the entities need to be from the same character encoding set that the document is specified to be using?

For example, if I am going to use the copyright sign in an HTML document that is specified as UTF-8, is it necessary to use the Unicode HTML entity (©) or is it okay to use other entities, such as the ASCII HTML entity (©)?

Please explain your answer. I am aware that it will “work”, but is there a case where it will not work?

Thanks!

  • 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-16T16:42:15+00:00Added an answer on May 16, 2026 at 4:42 pm

    © and © specify the same character – 169 is equivalent to hexadecimal A9. These both specify a copyright symbol. Character entities in HTML always refer to Unicode code points, this is covered in the HTML 4 Standard. Thus, even if your character set changes, your entities still refer to the same characters.

    This also means that you can encode characters that don’t actually appear within your character set of choice. I just created a document in the ISO-8859-1 character set, but it includes a Greek lambda. Also, ASCII is not able to directly encode a copyright symbol, but it can through character entities.

    Edit: Reading the comments on the other answer, I want to clarify this a bit. If you are using UTF-8 as the character encoding for your document, you can, within the raw HTML source, write a copyright symbol just as-is. (You need to find some way to input it, of course: copy-paste being the usual.) UTF-8 will allow you to directly encode any symbol you want. ISO-8859-1 is much more limited, and ASCII even more so. For example, within my HTML, if my document is a UTF-8 document, I can do:

    <p>Hi there. This document is ©2010. Good day!</p>
    

    or:

    <p>Hi there. This document is &#xA9;2010. Good day!</p>
    

    or:

    <p>Hi there. This document is &copy;2010. Good day!</p>
    

    The first is only valid if the character set supports “©”. The other two are always valid, but less readable. Whatever text editor you’re using, if it is worth its weight, should be able to tell you what character set it is encoding the document in.

    If you do this, you need to make sure your web server informs the client of the correct character set, or that your document declares it with something like:

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    

    I’ve used UTF-8 there as an example. XHTML should have the character set in the opening <?xml ... ?> tag.

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

Sidebar

Related Questions

I want to get the html including the selector that I am using to
I've been using jquery 1.3.2 to pull snippets of html (including script) from a
I'm having problems including local javascript files into my html that is on the
I need to be able to reference named HTML entities like &bull; instead of
I am including templateInclude.html in templateA.html. While I can access {{ request.get_full_path }} from
My data has many HTML entities in it ( &bull; ...etc) including &apos; .
I am including HTML pages in an iPad magazine app using WebView (Woodwing Reader
rails 3 seems to escape everything, including html. I have tried using raw() but
How can I search for the first 500 character, not including html tag? Below
I'm writing standards compliant XHTML Strict 1.0, so including the HTML target attribute on

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.