Code point
A code point is a numeric value assigned by a character-representation standard to identify an abstract character or symbol.
Modern C, Third Edition
A code point is a numeric value identifying a character or abstract symbol in a character repertoire such as Unicode.
- How it is used
- Uses code points to explain character identity, C text encodings, identifiers, and conversion boundaries.
- How deep it goes
- Defines code points and works through escapes, normalization, encoding sizes, and restartable conversion.
- Examples
- Uses Latin small a with diaeresis, the Ohm sign and Omega, and a character encoded as a UTF-16 surrogate pair.
- What you can do after
- Diagnose code-point boundaries in multibyte input using restartable conversion and buffered UTF-8 output.
Modern C
A code point is a numeric value assigned by a character standard to a character concept.
- How it is used
- Introduces code points to explain extended characters in C multibyte strings.
- How deep it goes
- Defines code points and distinguishes glyphs, then explains four- and eight-digit C escape forms.
- Examples
- Uses ä as 228 or 0xE4, contrasts Latin A with Greek Alpha, and specifies box-drawing characters in C macros.
- What you can do after
- Apply code points using C universal character escapes in multibyte string literals.
JavaScript in Depth
An integer value assigned to a specific abstract character or symbol in a character encoding standard.
- How it is used
- Distinguishes Unicode’s assigned symbol numbers from their representations in bytes.
- How deep it goes
- Defines code points and works through UTF-32 storage, UTF-16 surrogate arithmetic, and UTF-8 byte ranges.
- Examples
- Compares ASCII and UTF-32 encodings of `hello` and calculates `0x10437` from a UTF-16 surrogate pair.
- What you can do after
- Evaluate/understand why a symbol’s assigned number and its encoded byte count are different quantities.
Julia as a Second Language
A code point is a numeric value assigned to an abstract character or other element in a coded character set.
- How it is used
- Uses code points to explain how Julia handles text from different languages.
- How deep it goes
- Defines code points, contrasts them with code units, and works through UTF-8 encoding and string indexing.
- Examples
- Compares 'A', 'Æ', and '😏', then iterates over a string with nonconsecutive character indices.
- What you can do after
- Apply it via Julia’s `codepoint`, `Char`, and `ncodeunits` functions to inspect characters and their encodings.
100 Java Mistakes and How to Avoid Them
A Unicode code point is a numeric value identifying an abstract character or character-related symbol in the Unicode character set.
- How it is used
- Prevents Unicode text processing from confusing UTF-16 code units with displayed characters.
- How deep it goes
- Explains surrogate pairs, combining characters, failure effects, and Java alternatives, but does not fully define grapheme segmentation.
- Examples
- Uses emoji, skin-tone modifiers, fixed-row string splitting, digit checks, code-point streams, and BreakIterator.
- What you can do after
- Apply it via Java codePointAt(), codePoints(), and BreakIterator when processing Unicode text safely.
Read how 100 Java Mistakes and How to Avoid Them explains code point →
100 Go Mistakes and How to Avoid Them
A Unicode code point is a numeric value that identifies an abstract character or symbol in the Unicode standard.
- How it is used
- Explains why Go string operations can confuse byte counts, rune counts, and character-oriented behavior.
- How deep it goes
- Defines code points, contrasts them with encodings, and traces UTF-8 byte length before stopping at broader string operations.
- Examples
- Uses 汉, U+6C49, its three UTF-8 bytes, and len("汉") to expose byte-versus-rune counting.
- What you can do after
- Apply rune-aware iteration and indexing while diagnosing incorrect assumptions about Go string length or encoding.
Read how 100 Go Mistakes and How to Avoid Them explains code point →
API Design Patterns
A Unicode code point is a numeric value assigned by Unicode to identify a character or other encoded abstract element.
- How it is used
- Defines a practical unit for string-length limits and explains why Unicode representations matter for web-API identifiers.
- How deep it goes
- Explains code-point counting, UTF-32 sizing, normalization ambiguity, and ASCII recommendations without developing Unicode normalization in detail.
- Examples
- Uses “á” as both a single code point and a composed sequence to expose representation differences.
- What you can do after
- Apply code-point-aware limits, estimate storage conservatively, reject overlong strings, and choose ASCII for unique identifiers.
Also covered in
- Python Workout, Second Edition
- Regular Expression Puzzles and AI Coding Assistants
- Tiny CSS Projects
What to know first
- ASCIIASCII is a 7-bit character-encoding standard that assigns numeric codes to 128 basic Latin characters, symbols, punctuation marks, digits, and control characters.
- characterA character is a unit of text treated as a single symbol or element in a character sequence, independent of its underlying encoding.
- bytesBytes are an ordered sequence of byte values, typically eight-bit units, used to represent binary data.
- bitA bit is a binary digit and unit of digital information that represents one of two distinguishable values, conventionally 0 or 1.
Related concepts
- runeequivalent to · A rune is Go’s predeclared alias for int32 that represents a Unicode code point.
- ordproduced by · ord is a function or method that returns the integer character code or Unicode code point associated with a character.
- Unicodeproduced by · Unicode is a standard that assigns code points and properties to characters and defines encoding forms for representing text digitally.
- code unitused by · A code unit is a fixed-size numeric unit used by a character encoding to represent text, such as a 16-bit unit in UTF-16.
- surrogate pairimplemented by · A surrogate pair is two UTF-16 code units that together represent one Unicode code point outside the Basic Multilingual Plane.
- sorting algorithmmeasured by · A sorting algorithm is a procedure that rearranges elements of a collection into an order determined by an ordering criterion.
Questions about code point
What is code point?
A code point is a numeric value assigned by a character-representation standard to identify an abstract character or symbol.
Which Manning books explain code point?
Modern C, Third Edition, Modern C, JavaScript in Depth, Julia as a Second Language, 100 Java Mistakes and How to Avoid Them, 100 Go Mistakes and How to Avoid Them and API Design Patterns.
What should I know before learning code point?
Manning books that teach code point usually introduce ASCII, character, bytes and bit first.
What is code point also called?
Code point is also called Unicode codepoint or Unicode value.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.






