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

Windows Terminal显示乱码问题 #1

Open
Perdixky opened this issue Nov 6, 2024 · 0 comments
Open

Windows Terminal显示乱码问题 #1

Perdixky opened this issue Nov 6, 2024 · 0 comments

Comments

@Perdixky
Copy link

Perdixky commented Nov 6, 2024

Windows Terminal中国默认编码格式为gb2312,需要使用以下指令来改为UTF-8

[Console]::InputEncoding = [Console]::OutputEncoding = $OutputEncoding = [System.Text.UTF8Encoding]::new()  # BOM-less UTF-8

只需要打开Stack Build等终端的时候运行这个代码即可,希望可以加入这个功能!

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