Hacker News | 📄 原文链接 | 2026-07-17 收录

Mojibake:用 C 语言编写的底层 Unicode 处理库

来源:mojibake.zaerl.com — 2026-07-17

📋 概述

Mojibake 是一个用纯 C 语言编写的底层 Unicode 库,专注于正确性和最小化。作者将 Unicode 标准的复杂性封装在一个简洁的 API 中,同时提供完整的 UTF-8/16/32 转换、规范化、大小写映射和字形分割功能,适合嵌入式和性能敏感场景。

🔑 核心要点

💡 金句

Unicode is hard. Most libraries get it 95% right. Mojibake aims for 100%, because the 5% gap is where user-visible bugs are born — a character that renders as a box, a string that sorts wrong, an emoji that breaks your layout.
← 返回 Hacker News 首页