hongweifei/dsh-pwsh-encoding-fix ↗★ 0
@dsh-external/dsh-pwsh-encoding-fix
修复 Windows 上 pwsh 工具非 ASCII 输出乱码问题:在 pwsh 内部使用系统 ANSI 代码页解码原生命令输出,并以 UTF-8 重新发出。
AI 分析
核心用途是解决 Windows 平台下 PowerShell 工具执行原生命令时中文或非 ASCII 字符显示乱码的问题。适合在 Windows 环境下使用 DSH 终端工具的用户。
安装
$
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'