dsh-pwsh-cp
Manifest validPin every pwsh tool call to a UTF-8 console code page and Python UTF-8 mode
dsh-pwsh-cp
A DeepSeek Harness bundle for Windows hosts whose PowerShell console starts on
a legacy OEM code page (936 on zh-CN, for example). It decorates the shell
executor so every pwsh tool call begins with:
chcp 65001 *> $null; $env:PYTHONUTF8='1'; $env:PYTHONIOENCODING='utf-8';
Why
- The harness decodes command output as UTF-8.
- A fresh PowerShell process can still start on console code page 936. The
shipped preamble sets
[Console]::OutputEncoding = UTF8, but that does not move the console code page, so native tools keep writing GBK bytes into a UTF-8 decoder and non-ASCII text is lost. - Pinning the console to 65001 makes
dir, CMD built-ins, and code-page-aware CLI tools emit UTF-8. CMD built-ins then answer in English instead of the system's localized language. - Piped Python writes the locale code page (GBK) regardless of the console;
PYTHONUTF8=1makes it write UTF-8.
What it does not do
- It does not replace or disable
pwsh-sandbox; confinement is unchanged. - It does not affect the embedded terminal or other profiles.
- It does not preserve localized wording from legacy tools that ignore the console code page. Use a wrapper that can force the source code page when that matters.
Requirements
- Windows with PowerShell 7 (
pwsh). - A DeepSeek Harness build that provides the
shellservice and thepwshtool.
Install / remove
# from npm
dsh plugin --profile desktop add dsh-pwsh-cp
# from a checkout
dsh plugin --profile desktop add github:wannaknowhys/dsh-pwsh-cp
# remove
dsh plugin --profile desktop remove dsh-pwsh-cp
The plugin manager accepts the same specs: install_bundle target = dsh-pwsh-cp
or the checkout directory.
Comments
Loading…
Similar plugins
by Ayelsh
A DeepSeek Harness plugin: Zhipu coding-plan sign-in, quota and usage panel.
★ 0
MIT
TypeScript
Oct 19, 2026
dsh plugin --profile web add dsh-zhipu-planby CJYLZS
Give dsh agent a real browser to use
★ 5
↓ 2.8k/wk
MIT
TypeScript
Nov 6, 2026
dsh plugin --profile web add dsh-browserby hytime
Profile-aware keyboard shortcuts for the DeepSeek Harness Web Client
★ 2
↓ 275/wk
NOASSERTION
TypeScript
Sep 10, 2026
dsh plugin --profile web add @hytime/dsh-client-ui-shortcutsby robbywang25
Codex-style pinned sessions for DeepSeek Harness — always visible above the sidebar list
★ 1
MIT
JavaScript
Sep 6, 2026
dsh plugin --profile web add dsh-codex-pinsby 240xu
Unified web search provider for DSH
★ 9
↓ 1.2k/wk
MIT
JavaScript
Nov 15, 2026
dsh plugin --profile web add @240xu/dsh-websearchby sdegongzuo
DeepSeek Harness 客户端网页操作与调试插件:多会话、新窗口、多标签页调试和操作网页
★ 0
MIT
TypeScript
Nov 4, 2026
dsh plugin --profile web add dsh-webops-plugin