spicy icon indicating copy to clipboard operation
spicy copied to clipboard

decode() on bytes should support UTF-16

Open sethhall opened this issue 7 months ago • 3 comments

It looks like the current implementation only supports ASCII and UTF-8 to decode into a string and the current library being used is strictly for UTF-8. In order to support anything with Windows roots, it would be nice to support UTF-16.

I poked around for a few minutes and found a potential small library that might work for the use case to decode UTF-16 into a string type.... https://github.com/nemtrif/utfcpp

sethhall avatar Jul 10 '24 16:07 sethhall