mutf8

An implementation of a Modified UTF-8 encoder and decoder in Nim!

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version Unknown
License Apache-2.0
CI Status Failing
Downloads 0
Last Indexed 2026-07-21 05:23

Installation

nimble install mutf8
choosenim install mutf8
git clone https://github.com/The-Ticking-Clockwork/MUTF-8

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
mutf8 - - - - - - -

README

MUTF-8

An implementation of the Modified UTF-8 encoder and decoder from Java, meant for use within TagForge, an NBT parser and dumper!

Usage

import mutf8

assert decodeMutf8([0xE3.byte, 0x81, 0x82]) == "あ"
assert encodeMutf8("Hello☆") == [0x48.byte, 0x65, 0x6c, 0x6c, 0x6f, 0xe2, 0x98, 0x86]