Closed ufcpp closed 2 years ago
Ah, chcp 650001 solves the issue.
>chcp 65001
Active code page: 65001
>wasmtime WasiSdkConsole1.wasm
a α Я あ
Cool, thanks for letting us know! So it looks like an issue in the terminal emulator, not in this project.
Version Used
Windows 11 (current culture: ja-JP) .NET SDK 7.0.100-preview.2.22153.17 Wasi.Sdk 0.1.0
Step to repro
Run with
wasmtime app.wasm
in the terminalExpected result
Actual result
This output seems like a string written "a α Я あ" as UTF-8 and read as Shift_JIS (code page 932). CP932 is a default encoding for Windows ja-JP.
On the other hands, if you run the wasm on WebAssembly.sh, there is no characters garbled.