Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code page errors in certain environments #28362

Open
steve02081504 opened this issue Mar 1, 2025 · 0 comments
Open

code page errors in certain environments #28362

steve02081504 opened this issue Mar 1, 2025 · 0 comments

Comments

@steve02081504
Copy link

steve02081504 commented Mar 1, 2025

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.

Image

reproduce:

  1. open powershell on Windows
  2. Install ps12exe by:
 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:

deno eval "console.log('测试')" # outputs: 测试
"deno eval `"console.log('测试')`"" | ps12exe
./a.exe # outputs: 娴嬭瘯
"'测试'" | ps12exe
./a.exe # outputs: 测试

Image

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.
Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant