Text - Unicode (UTF) Encoding

1 - About

Unicode is a global character set that allows multilingual text to be displayed in a single application. This enables to develop a single multilingual application and deploy it worldwide. It allows to represent a much larger variety of characters beyond the roman alphabet (greek, russian, mathematical symbols, logograms from non-phonetic writing systems such as kanji, etc.)

Unicode is the universal character set that supports most of the currently spoken languages of the world. It also supports many historical scripts (alphabets). Unicode is the native encoding of many technologies, including Java, XML, XHTML, ECMAScript, and LDAP.

The designers of Unicode historically miscalculated the total of code points and originally thought that Unicode would need no more than <math>2^{16}</math> code points. The original standard UCS-2 16-bit encoding was born.

The standard expanded to its current range of over <math>2^{20}</math> code points. The new increased range is organized into 17 subranges of <math>2^{16}</math> code points each.

  • The first of these, known as the Basic Multilingual Plane (or BMP), consists of the original <math>2^{16}</math> code points.
  • The additional 16 ranges are known as the supplementary planes.

3 - Scheme

Unicode allows multiple different binary encodings schemes of code points. The most popular standard encodings of Unicode are:

Others:

  • UTF-16BE,
  • UTF-16LE,
  • UTF-32BE,
  • and UTF-32LE.
Unicode Standard Bit Total of code point
UCS-2 16 <math>2^{16}</math>

4 - Notation/Encoding

4.1 - Hexadecimal

Unicode code points are denoted as U+hhhh, where “hhhh” is a sequence of at least four, and at most six hexadecimal digits.

Characters are denoted using the notation used in the Unicode Standard, that is, an optional U+ followed by their hexadecimal number, using at least 4 digits, such as “U+1234” or “U+10FFFD”.

In XML or HTML this could be expressed as “&#x1234;” or “&#x10FFFD;”.

4.2 - Binary

From the hexadecimal form, you can always go the binary form

5 - Data

The UnicodeData file is part of the Unicode Character Database maintained by the Unicode Consortium. This file specifies various properties including name and general category for every defined Unicode code point or character range.

The file and its description are available from the Unicode Consortium at: http://www.unicode.org

6 - Documentation / Reference

data/type/text/unicode.txt · Last modified: 2018/12/07 14:51 by 172.68.59.148