We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 11 terminal preview PowerShell 7.3.4
The text was updated successfully, but these errors were encountered:
经典的 GBK 编码问题,我研究下怎么解决
Ref: https://zhuanlan.zhihu.com/p/138590745
Sorry, something went wrong.
因为底层依赖 bubbletea 目前只支持 UTF8,所以这个编码问题在我这一侧暂时无解。不过从你的角度可以通过修改 code page 为 utf8 来解决,相关链接:https://stackoverflow.com/questions/57131654/using-utf-8-encoding-chcp-65001-in-command-prompt-windows-powershell-window
powershell:
code $profile
添加一下配置
[System.Console]::OutputEncoding=[System.Text.Encoding]::GetEncoding(65001)
No branches or pull requests
输入中文后,显示在控制台是乱码,比如我输入
你好
,显示在控制台是浣犲ソ
windows 11
terminal preview
PowerShell 7.3.4
The text was updated successfully, but these errors were encountered: