Added UTF-8's multi-byte support to a text editor today, I've always been scared to get into it, it looked messy and confusing at a distance. But the design makes it pretty accessible, for even such a small system as uxn.
The rule is pretty simple:
- starting bytes are 11xx xxxx
- continuation bytes are 10xx xxxx
The entire implementation to handle multi-byte characters is a mere 30ish bytes long.
https://wiki.xxiivv.com/site/utf8.html
example implementation: https://git.sr.ht/~rabbits/left/tree/main/item/src/left.tal#L909
@neauoire whaaaaat
but i think utf-8 input is still not possible in uxnemu, because it only sends one byte into the Controller/key port. i was trying to make it work, but i was distracted by other things and never finished it as a result. i am still interested though!