Mojibake - Zero-dependency Unicode 17 library for C and C++
Show HN: Mojibake – a low-level Unicode library written in C
Mojibake is a lightweight, self-contained Unicode 17 text-processing library designed for C11 and C++17 developers. It eliminates the need for external dependencies or runtime installations by providing a single-file solution that handles complex text operations like normalization, case conversion, and bidirectional text rendering. With full compliance to Unicode standards and support for multiple encodings, Mojibake enables developers to ship robust, standards-compliant text handling across all modern operating systems with minimal overhead.
Unicode text processing, without the baggage.
- lifthrasiir
How does it compare with utf8proc [1]? I'm aware that Mojibake does a bit more than utf8proc (e.g. bi-di) but that seems marginal to me.
- throwaway2037
I assume the submitter is also the author. If so, can you share about your motivation to write this library? For example, do you use it professionally or in hobby projects? Did you look at other libraries and think that you could do better? These are honest questions -- no trolling from me. I browsed the code and it looks very clean.
The API documention is so nice! It looks like index.html from https://mojibake.zaerl.com/ uses JavaScript to generate the page. Very cool, indeed.
- digg99
Love the amalgamation approach—the C/C++ ecosystem desperately needs cleaner, lightweight Unicode support without pulling in massive dependencies... thanks for sharing