Unicode
The standard that gives every character in every writing system its own number, called a code point.
In more detail
Unicode defines which characters exist; encodings such as UTF-8 and UTF-16 define how those numbers are stored as bytes. It covers the letters, digits and symbols of nearly every writing system, plus emoji.
Examples
ord('A') == 65 returns a character's code point in Python.unicodedata.name('е') returns 'CYRILLIC SMALL LETTER IE'Java strings are sequences of UTF-16 code units.Related terms
- counting sort — A non-comparison sort for small non-negative integers that counts how many times each value occurs and then writes the values back out in order.
- homoglyph — A character that looks the same, or almost the same, as a different character, such as a Cyrillic letter that looks like an English e.
- Punycode — A standard way to write domain names that contain non-English characters using only the plain letters, digits and hyphens the domain system accepts.
- encoding — Turning data into a different representation so it can be stored or transmitted, following a public rule that anyone can reverse.
- byte — A unit of digital data made of eight bits, enough to store one of 256 values, such as a single plain-text character.
- UTF-8 — The most widely used character encoding, which can represent every Unicode character and matches ASCII for plain English letters.
- UTF-16 — A Unicode encoding that stores each character as one or two 16-bit code units, used in memory by Java and JavaScript strings and by Windows.
- char — Java's primitive type holding one UTF-16 code unit, which covers most but not all single characters.
- character encoding — The rule for turning text characters into bytes and back, such as UTF-8.
- string — A sequence of characters, that is, a piece of text.
Taught in
- Counting And Radix Sort: Beating N Log N — Algorithms & Data Structures for Working Engineers
- Social Engineering, Phishing & Human Defense — Cybersecurity Fundamentals, GRC & Cryptography
- Primitive And Reference Types — Modern Java: Virtual Threads & High-Throughput Services
- Strings, StringBuilder And Text Blocks — Oracle Certified Professional: Java SE 21 Developer (1Z0-830) Exam Prep
- Arrays: Declare, Sort, Search, Compare — Oracle Certified Professional: Java SE 21 Developer (1Z0-830) Exam Prep
- Buffer Encodings: UTF-8, Hex, Base64 & Slicing — Node.js Internals & Backend Services
- Paths And Files The Modern Way — Hands-on Python: Complete Video Course & Book
- The Class That Shared One List — PCAP Certified Associate in Python Programming (PCAP-31-03) Exam Prep
- Characters As Numbers — PCAP Certified Associate in Python Programming (PCAP-31-03) Exam Prep
- Comparing, Slicing And Never Changing — PCAP Certified Associate in Python Programming (PCAP-31-03) Exam Prep
- String Methods The Exam Picks — PCAP Certified Associate in Python Programming (PCAP-31-03) Exam Prep
- Strings Sprint — PCAP Certified Associate in Python Programming (PCAP-31-03) Exam Prep
- Streams, Handles And Open Modes — PCAP Certified Associate in Python Programming (PCAP-31-03) Exam Prep
References
- Unicode: what is Unicode?
- Python Unicode HOWTO
- Unicode FAQ: UTF-8, UTF-16, UTF-32 and BOM
- Unicode Consortium: The Unicode Standard
- The Unicode standard