hongweifei/dsh-pwsh-encoding-fix0

@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 输出乱码。

AI 分析

核心用途是解决 Windows 平台下 PowerShell 工具执行原生命令时中文或非 ASCII 字符显示乱码的问题。适合在 Windows 环境下使用 DSH 终端工具的用户。

パッケージ
@dsh-external/dsh-pwsh-encoding-fix
バージョン
1.0.0
ライセンス
MIT
最終更新
2026/08/15

インストール

$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'