Inkhmer LogoInKhmerBuilding the digital future
  • About
  • Projects
  • Blog
  • Tools
  • Learn
  • Contact
KMខ្មែរENEnglish

InKhmer.com — a personal Khmer Digital Hub curated by our team. Tools, Cambodia resources, Khmer culture, and digital projects. Practical, approachable, and built for everyone.

Social

FacebookTelegram

Quick Links

  • About
  • Projects
  • Blog
  • Tools
  • Learn
  • Contact

Explore

  • What We Build
  • How We Build
  • Roadmap
  • Experiments
  • Sitemap

Subscribe to our newsletter

Get the latest updates about Cambodia, new tools, and exclusive content delivered to your inbox.

  • Terms of Service
  • Privacy Policy
  • Cookie Policy

© 2026 InKhmer. All rights reserved.

LearnKhmer NLP and Large Language ModelsKhmer and Unicode: one character is not one byte

Khmer and Unicode: one character is not one byte

Unicode gives every character a code point. Khmer sits in U+1780–U+17FF plus signs, including the zero-width space (U+200B) — an invisible gap that helps split words in Khmer text.

First hurdle: the Khmer word «គា» is two code points — consonant «គ» + vowel «ា». Order matters: the same-looking text can be written with combining marks in different orders, and the computer sees different bytes — canonical equivalence. So normalisation (e.g. NFC) is step one for any Khmer NLP work.

Second hurdle: legacy encodings. Older corpora still exist in non-Unicode fonts (Limon, ABC) — conversion is lossy and must be checked by hand.

What to remember:

  • One character ≠ one byte; stacked letters = multiple code points
  • Same-looking text can differ in bytes → normalise to NFC first
  • Zero-width space is a word-break helper, not an error

Sign in to start tracking from this lesson