skip to content
[readonly]
==> README.md <==
1# @ajax/tui-utf8
2
3UTF-8 decoding, encoding and repair exactly as Rust's String::from_utf8_lossy (one U+FFFD per maximal ill-formed subpart).
4
5Part of the C port of [alpha-rust-mesh](https://github.com/rsafier/alpha-rust-mesh)'s `mesh-top`, a
6terminal UI built with ratatui: these packages reproduce what ratatui and its Unicode crates compute,
7so a frame drawn in C is the same, cell for cell, as the Rust one.
8
9## Ported from
10
11[alpha-rust-mesh](https://github.com/rsafier/alpha-rust-mesh) (Richard Safier, MIT)'s `mesh-top` depends on it through ratatui: Rust's `String::from_utf8_lossy` and `char_indices`.
12
13## Tests
14
15`tests/utf8.c`.
16
17## Licence
18
19MIT. See the repository's LICENSE.