info > CHARMAP

📛 NAME

charmap - character set description file

🚀 Quick Reference

Use Case Command Description
📋 View available charmap names locale -m List all installed character map names
🔧 Compile a locale with a specific charmap localedef -f charmap -i locale locale_name Create locale variant using a character map file
📄 Inspect a charmap file head /usr/share/i18n/charmaps/UTF-8 View the header and first characters of a charmap
🔍 Convert file encoding using iconv iconv -f from_charmap -t to_charmap file Convert file contents between character sets

📖 DESCRIPTION

A character set description (charmap) defines all available characters and their encodings in a character set. localedef(1) can use charmaps to create locale variants for different character sets.

📐 Syntax

The charmap file starts with a header that may consist of the following keywords:

The character set definition section starts with the keyword CHARMAP in the first column.

The following lines may have one of the two following forms to define the character set:

The character set definition section ends with the string END CHARMAP.

The character set definition section may optionally be followed by a section to define widths of characters.

The WIDTH_DEFAULT keyword can be used to define the default width for all characters not explicitly listed. The default character width is 1.

The width section for individual characters starts with the keyword WIDTH in the first column.

The following lines may have one of the two following forms to define the widths of the characters:

The width definition section ends with the string END WIDTH.

📁 FILES

📜 CONFORMING TO

POSIX.2.

💡 EXAMPLES

The Euro sign is defined as follows in the UTF-8 charmap:

<U20AC>     /xe2/x82/xac EURO SIGN

🔗 SEE ALSO

iconv(1), locale(1), localedef(1), locale(5), charsets(7)

📝 COLOPHON

This page is part of release 5.10 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https://www.kernel.org/doc/man-pages/.

CHARMAP
📛 NAME 🚀 Quick Reference 📖 DESCRIPTION
📐 Syntax
📁 FILES 📜 CONFORMING TO 💡 EXAMPLES 🔗 SEE ALSO 📝 COLOPHON

Generated by phpman v4.9.26-5-g7740029 Author: Che Dong Under GNU General Public License
2026-08-14 21:01 @2600:1f28:365:80b0:4d23:66fa:c2bb:7bae
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)
Valid XHTML 1.0 Transitional!Valid CSS!