liveBook · Manning

Extended character set

An extended character set is a character repertoire containing characters beyond those in the C basic character set.

How 2 Manning books explain it

Modern C

An extended character set is a character repertoire that includes characters beyond the C basic character set.

How it is used
Uses multibyte strings to handle extended characters in textual input and output.
How deep it goes
Defines multibyte characters and strings, then works through locale setup, character counting, conversion state, and helper implementations.
Examples
Uses extended-character terminal output, a drawn separator, and helpers for measuring and converting multibyte strings.
What you can do after
Apply it via C’s setlocale and multibyte conversion functions to print and count extended characters while checking encoding errors.

Read how Modern C explains extended character set →

Modern C, Third Edition

An extended character set is a repertoire that includes characters beyond the limited C basic character set, such as characters from additional scripts and writing systems.

How it is used
Uses multibyte strings to handle extended-character text in C input and output.
How deep it goes
Defines multibyte characters and strings, then works through length measurement and stateful conversion; does not treat byte counts as character counts.
Examples
Shows locale-dependent printing of extended characters, box-drawing string literals, and an `mbsrtowcs`-based length function.
What you can do after
Apply it via C library locale and conversion functions to print multibyte text and distinguish byte lengths from converted lengths.

Read how Modern C, Third Edition explains extended character set →

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.