An open API service indexing awesome lists of open source software.

https://github.com/the-ticking-clockwork/mutf-8

An implementation of a Modified UTF-8 encoder and decoder in Nim!
https://github.com/the-ticking-clockwork/mutf-8

charset decoding encoding modified-utf8 mutf-8 mutf8

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# MUTF-8
An implementation of the Modified UTF-8 encoder and decoder from Java,
meant for use within [TagForge](https://github.com/Nimberite-Development/TagForge-Nim),
an NBT parser and dumper!

## Usage
```nim
import mutf8

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