#Confusion about UTF-16
1 messages · Page 1 of 1 (latest)
Depending on what is doing the printing, and which encoding it expects, you might be able to feed the buffer directly to the appropriate Writer
1 messages · Page 1 of 1 (latest)
I'm not sure how to print UTF-16 directly on Windows with Zig, but there is wtf16LeToWtf8 and a few variations for converting it to ~UTF-8, which will format correctly with "{s}".
Depending on what is doing the printing, and which encoding it expects, you might be able to feed the buffer directly to the appropriate Writer