Post

HN
Hacker News

Show HN: Mojibake – a low-level Unicode library written in C

Mojibake is a low-level Unicode 17 text-processing library written in C11 and compatible with C++17. It is released under the MIT License.

You don't need to install anything. There are two files ( mojibake.c , mojibake.h ) to add to your C/C++ project. Download it here mojibake-amalgamation-027.zip

Examples of normalization, characters count and NFKC casefold.

All the C files, together with the Unicode data tables, are concatenated into a single large file and header: mojibake.c and mojibake.h . Zero dependencies.

Mojibake can compile out optional feature tables to reduce binary size. Feature macros default to enabled.

See API.md or the site for the detailed documentation.