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

(mojibake.zaerl.com)

43 points | by program 4 hours ago

5 comments

  • lifthrasiir 2 hours ago
    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.

    [1] https://juliastrings.github.io/utf8proc/

  • CharlesW 2 hours ago
    Not to bikeshed, but isn't the word "mojibake" synonymous with "when character encoding breaks"?
    • RIMR 1 hour ago
      [dead]
  • digg99 3 hours ago
    Love the amalgamation approach—the C/C++ ecosystem desperately needs cleaner, lightweight Unicode support without pulling in massive dependencies... thanks for sharing
  • tjwebbnorfolk 2 hours ago
    what's performance like compared to python ftfy module?
  • avadodin 2 hours ago
    I have come to the conclusion that the only Unicode support needed in C is supporting pointers to char and arrays but lightweight C libraries are always welcome.
    • adrianN 2 hours ago
      I guess you never have to deal with text if you think that’s enough? What kind of software do you write in C?