console.log of non-ASCII text is mojibake on Windows consoles with a non-UTF-8 code page (no WriteConsoleW)
- Dominant language
- Rust
- Stars
- 108k
- Forks
- 6.4k
- Avg merge
- 3d 33m
- Merged PRs (30d)
- 57
Description
Version: Deno 2.2.2

My repo uses ps12exe to help users install git, deno, and start the repo.
But it seems that deno's Chinese output in ps12exe is messed up.

# reproduce:
1. open powershell on Windows
2. Install ps12exe by:
```powershell
Install-Module ps12exe -Scope CurrentUser -Force
```
It'll download an 1mb powershell moule for generate exe, you can remove it by `Uninstall-Module ps12exe`
3. Run the following command:
```powershell
deno eval "console.log('测试')" # outputs: 测试
"deno eval `"console.log('测试')`"" | ps12exe
./a.exe # outputs: 娴嬭瘯
"'测试'" | ps12exe
./a.exe # outputs: 测试
```

You don't need to install powershell core, use windows powershell that comes with windows and make sure deno is in your path can also reproduce this.

Contributor guide
Assessment
This issue has not been assessed yet.