Extended character set
An extended character set is a character repertoire containing characters beyond those in the C basic character set.
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.
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
- multibyte stringuses · A multibyte string is a character sequence in which one logical character may occupy multiple bytes according to an encoding, typically terminated by a null character.
- C standard libraryused by · The C standard library is the standardized collection of functions, macros, types, and related facilities provided for C programs.
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.

