@remko I was wondering if you had any insight on how I could transform the console device byte stream in uxn5, so that utf-8 characters are understood properly, so I need to fill a temporary buffer during parts of multi-byte character?
@remko I was wondering if you had any insight on how I could transform the console device byte stream in uxn5, so that utf-8 characters are understood properly, so I need to fill a temporary buffer during parts of multi-byte character? 1 comment
|
@neauoire I think you’re looking for TextDecoder: https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder
See my usage here: https://github.com/remko/uxn.wasm/blob/5a19a40f5e8b06a6c5f9fad9fb87fe61429fb144/src/util/index.js#L42