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

  • Home
  • SEARCH
  • 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 8599101
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T01:19:04+00:00 2026-06-12T01:19:04+00:00

In JavaScript we can use the below line of code(which uses Unicode) for displaying

  • 0

In JavaScript we can use the below line of code(which uses Unicode) for displaying copyright symbol:

var x = "\u00A9 RPeripherals";

Why can’t we type the copyright symbol directly using ALT code (alt+0169) like below :

var x = "© RPeripherals" ;

What is the difference between these two methods?

  • 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-12T01:19:05+00:00Added an answer on June 12, 2026 at 1:19 am

    Why can’t we type the copyright symbol directly using ALT code (alt+0169) like below :

    Who says so? Of course you can. Just configure your code editor to use UTF-8 encoding for source files. You should never use anything else to begin with…

    What is the difference between these two methods?

    The difference is that using the \uXXXX scheme you are transmitting at best 2 and at worst 5 extra bytes on the wire. This kind of spelling may help if you need to embed characters in your source code, which your font cannot display properly. For example, I don’t have traditional Chinese characters in the font I’m using for programming, so if I type Chinese characters into my code editor, I’ll see a bunch of question marks or rectangles with Unicode codepoint digits instead of actual characters. But someone who has Chinese glyphs in the font wouldn’t have that problem.

    If me and that person want to share our source code, it would be preferable that the other person uses \uXXXX scheme, as I would be able to verify which character is that by looking it up in the Unicode table. That’s about all the difference.

    EDIT

    ECMAScript standard (v 262/5.1) says specifically that

    A conforming implementation of this Standard shall interpret
    characters in conformance with the Unicode Standard, Version 3.0 or
    later and ISO/IEC 10646-1 with either UCS-2 or UTF-16 as the adopted
    encoding form, implementation level 3. If the adopted ISO/IEC 10646-1
    subset is not otherwise specified, it is presumed to be the BMP
    subset, collection 300. If the adopted encoding form is not otherwise
    specified, it presumed to be the UTF-16 encoding form.

    So, the standard guarantees that character encoding is Unicode, and enforces the use of UTF-16 (that’s strange, I thought it was UTF-8), but I don’t think that this is what happens in practice… I believe that browsers use UTF-8 as default. Perhaps this have changed in the later standards, but this is the one last universally accepted.

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

Sidebar

Related Questions

You can use the URL helper in Code Igniter to load CSS and Javascript
I know on client side (javascript) you can use windows.location.hash but could not find
Is there any way that I can use JavaScript (and jQuery) to create a
Is there anyway I can use native javascript to fire an event called onmove
in html and javascript, I can use keyup, focus, blur to detect most of
HTML Javascript question to get the selected value of a input-select I can use
How I can capture browser restore/maximize event in jQuery or javascript? We can use
I'm new in JavaScript and I'm tring to find out how I can use
In JavaScript, if I have some function I can use the arguments object to
I was creating a countdown timer using javascript; I can use jQuery. I want

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.