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
hok cat
使用 hok cat 在中文环境下显示中文字符会出现乱码的现象
CMD 下测试:
更换 PowerShell 也一样:
使用 scoop cat 不会乱码:
scoop cat
手动使用 chcp 65001 切换代码页为 65001 (UTF-8) 后显示正常
chcp 65001
使用 hok info 没有出现乱码的现象
hok info
The text was updated successfully, but these errors were encountered:
fix(hok): Remove type.exe dep in hok cat
type.exe
47a42c5
address: #14 Signed-off-by: Chawye Hsu <su+git@chawyehsu.com>
hok cat 在没检查到 bat.exe 时会用控制台的 type 指令打印信息,type 的输出受控制台编码影响。我已经去掉 type 改用内置方法打印信息,发版之前你可以安装 bat,这样 hok 会自动用 bat 来打印。
bat.exe
type
bat
hok
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
使用
hok cat
在中文环境下显示中文字符会出现乱码的现象CMD 下测试:
更换 PowerShell 也一样:
使用
scoop cat
不会乱码:手动使用
chcp 65001
切换代码页为 65001 (UTF-8) 后显示正常使用
hok info
没有出现乱码的现象The text was updated successfully, but these errors were encountered: