AI Agent Hub
Back to plugins
🖥️

dsh-console-utf8

Client Updated 2026.09.16

Run the following command in DeepSeek Harness:

dsh plugin install VviLliAm-qwq/dsh-console-utf8

Paste the following prompt into your AI chat to install this plugin:

Run dsh plugin install VviLliAm-qwq/dsh-console-utf8 in a DeepSeek Harness terminal (source: https://github.com/VviLliAm-qwq/dsh-console-utf8), then type /restart to activate the plugin.

About this plugin

When running bash commands through dsh on Windows, output from Windows-native child processes such as powershell, git, and cmd frequently arrives as mojibake. The root cause is not a decoding bug: the console defaults to an OEM code page (936 on Chinese systems, 932 on Japanese, 437 on US-English), while the dsh subprocess layer decodes child stdout as UTF-8. The mismatch irrevocably destroys every non-ASCII character in that output.

dsh-console-utf8 does one thing well: it makes the console speak UTF-8. It switches the host console to code page 65001 via chcp, reads the page back to confirm the change actually took effect, and maintains a BASH_ENV hook script so every non-interactive bash -c invocation re-applies the code page within its own process group. This covers the case where the shell executor spawns a fresh console that would otherwise revert to the system default. The plugin writes exactly two files (the hook script and a bounded lifecycle log), never rewrites commands, never touches PATH, and never patches the shell stack.

Best suited for developers who use dsh with bash on Windows and whose child-process output contains Chinese, Japanese, or other non-ASCII text. If you see garbled output from git log, chcp, or powershell in your TUI session, the issue resolves after a single /restart. On a pure US-English locale the benefit is minimal since code page 437 and UTF-8 share most printable ASCII characters.

Use Cases

  • Child-process output from git, chcp, or powershell arrives as mojibake in dsh
  • Non-ASCII characters in Windows-native tool output are destroyed by code-page mismatch
  • A freshly spawned console reverts to the system default OEM code page

Best For

  • Developers running dsh with bash on Windows
  • dsh users whose child-process output contains Chinese, Japanese, or other non-ASCII text
  • dsh-TUI users experiencing garbled output from git, chcp, or powershell