hongweifei/dsh-pwsh-encoding-fix ↗★ 0
@dsh-external/dsh-pwsh-encoding-fix
Fix garbled non-ASCII output from the pwsh tool on Windows: native command output is decoded with the system ANSI codepage inside pwsh and re-emitted as UTF-8. 修复 pwsh 工具中文/非 ASCII 输出乱码。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:hongweifei/dsh-pwsh-encoding-fix说明文档
阅读完整 README ↗在 D:\Projects\dsh-pwsh-encoding-fix 同级目录下执行(或使用绝对路径)
dsh plugin --profile web add "D:\Projects\dsh-pwsh-encoding-fix"
可选配置
如需显式指定原生输出的 ANSI 代码页(默认 Default = 系统 ANSI 代码页),
可在 profile 的 cordis.patch.yml 中给该行追加配置:
- insert:
- id: pwsh-encoding-fix
name: '@dsh-external/dsh-pwsh-encoding-fix'
config:
codePage: '936'