liveBook · Manning

Unicode escape

A Unicode escape is source-code or string-literal notation that represents a Unicode character by specifying its code point with an escape marker and hexadecimal digits.

How 2 Manning books explain it

Modern C

A Unicode escape sequence is a C escape notation using \u or \U followed by hexadecimal digits to specify a Unicode code point.

How it is used
Specifies Unicode characters in C string-literal macros used to draw borders.
How deep it goes
Defines the notation through concrete escapes but does not detail their encoding in printed multibyte strings.
Examples
Shows escapes for vertical and horizontal bars and two corner characters.
What you can do after
Evaluate/understand how an escape names a character without itself ensuring that multibyte printing works.

Read how Modern C explains Unicode escape →

Learn Rust in a Month of Lunches

A Unicode escape is a string-literal notation that represents a Unicode character using a hexadecimal code point.

How it is used
Uses hexadecimal escapes to print Unicode characters directly inside string literals.
How deep it goes
Defines the syntax and demonstrates conversion through u32, but does not develop Unicode encoding internals.
Examples
Shows 행, H, 居, and い as characters, hexadecimal values, and Unicode escapes.
What you can do after
Apply it via Rust string literals to print selected Unicode characters from hexadecimal code points.

Read how Learn Rust in a Month of Lunches explains Unicode escape →

Related concepts

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.