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
Uses Unicode escapes to express extended characters in C string literals.
How deep it goes
Illustrates escape notation through named string-literal definitions.
Examples
Defines horizontal and vertical bars and top corners using box-drawing escapes.
What you can do after
Evaluate and understand how an escape specifies a character without writing the symbol directly.

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 →

Also covered in

What to know first

Related concepts

Questions about Unicode escape

What is 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.

Which Manning books explain Unicode escape?

Modern C and Learn Rust in a Month of Lunches.

What should I know before learning Unicode escape?

Manning books that teach Unicode escape usually introduce ASCII first.

What is Unicode escape a kind of?

Unicode escape is a kind of escape sequence. An escape sequence is source notation using a marker to change how following characters are interpreted, often representing a special character or control value or making syntax literal.

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.