I'm trying to embed a component with wasm-tools component embed wit --encoding utf16
and this component make uses of the wasi:cli's stdout and get-arguments. However from my testing, I read utf16 from get-arguments
but I need to write utf8 to stdout. Is that expected?
Yes, because only strings are converted, not streams or files.
But I agree that it is confusing once you combine it in one sentence.
Now I see that it writes bytes instead of string. Thank you.
Last updated: Nov 22 2024 at 16:03 UTC