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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T00:32:22+00:00 2026-06-05T00:32:22+00:00

How many bytes are required to store one character in: Microsoft’s implementation of the

  • 0

How many bytes are required to store one character in:

  • Microsoft’s implementation of the .NET framework, version 4
  • JavaScript, as implemented by Microsoft Internet Explorer 8?
  • 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-05T00:32:24+00:00Added an answer on June 5, 2026 at 12:32 am

    Both .NET and JavaScript use UTF-16. UTF-16 is a so-called variable-length encoding which uses 16-bit code units to represent Unicode code points (which are 21 bits in length). Historically it came from UCS-2 when Unicode was still a 16-bit code (which was deemed insufficient later, thus the expansion to 21 bits).

    Since UTF-16 uses 16-bit code units the code itself is a 16-bit code, but to represent a character, you’ll have to look a bit closer to what you actually mean:

    1. Character in the Unicode sense means Unicode code point which is probably your intended meaning. Here are two cases:

      1. A code point in the range  U+0000 to  U+FFFF takes up two bytes, because it can be represented in a single UTF-16 code unit (here code unit and code point are identical).
      2. A code point in the range U+10000 to U+10FFFF takes up four bytes because it has to be represented using two UTF-16 code units.
    2. Character in the usual meaning often refers to graphemes, actually, which would be what we perceive as a single character. Those can have arbitrarily many diacritics, or may be ligatures that are formed out of multiple code points by the rendering engine. Long story short in this case: Those can be arbitrarily long since they can consist of several code points.

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

Sidebar

Related Questions

Image I catch a stream of the net and count how many bytes went
How many bytes of data does a typical HTTP get request consume. For instance
What is the size of each asm instruction? Every instruction takes how many bytes?
Many journals require submission of a blinded version of your paper. The blinded version
I'm looking for the amount of storage in bytes (MB, GB, TB, etc.) required
I wish to yield from a generator only as many items are required. In
How do you get how many bytes were read with the ifstream::read function? Tell
I have used the maven plugin axistools-maven-plugin in version 1.4 for many projects to
First, a bit of a background. There are many various comparisons of distributed version
Can anyone tell me how many bytes the below string will take up? string

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.