console.log of non-ASCII text is mojibake on Windows consoles with a non-UTF-8 code page (no WriteConsoleW)
- Lingua principale
- Rust
- Stelle
- 108k
- Fork
- 6.4k
- Merge medio
- 2g 22h
- PR unite (30g)
- 59
Descrizione
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.

Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.