Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can someone explain what this means?

Unicode defines a codespace of 1,114,112 code points in the range 0hex to 10FFFFhex.

share|improve this question
up vote 7 down vote accepted

A code point or code position is any of the numerical values that make up the codespace.

As per the Wikipedia entry on Code point:

The notion of a code point is used for abstraction, to distinguish both:

  • the number from an encoding as a sequence of bits, and
  • the abstract character from a particular graphical representation (glyph).

This is because one may wish to make these distinctions:

  • encode a particular code space in different ways, or
  • display a character via different glyphs.

So Unicode defines space for over a million distinct glyphs, which are accessed in the hex range from 0 to 10FFFF. You may be familiar with Extended ASCII which comprises 256 code points in the range 0hex to FFhex.

share|improve this answer
+1 nice Ascii example – Imran Omar Bukhsh Sep 26 '11 at 15:23

The value of 0x10FFFF is 1,114,111. Between 0x000000 and 0x10FFFF, you have 1,114,112 numerical values. In Unicode, every character is represented by a number in the range 0 through 1,114,111. Software then interprets this numerical value to render the character on the screen.

share|improve this answer

The codespace is an abstract layer between the glyphs (User Interface level) and the (byte-)encoding. Every character defined in Unicode has its own code point, and there 1,114,112 possible code points (not all are used).

For example, the euro sign is always code point U+20AC. Depending on the selected encoding it may be encoded as +IKw- (UTF-7), E2 82 AChex (UTF-8), 20 AChex (UTF-16) OR 00 00 20 AChex (UTF-32).

share|improve this answer
it would be nice (+1) if you could include an example to show how a character looks at the interface level along with its unicode equivalent along with how it would look in its byte-encoding – Imran Omar Bukhsh Sep 27 '11 at 8:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.