[BUG] Claude code bash command execution, output Chinese characters appear as garbled text

Resolved 💬 8 comments Opened Sep 9, 2025 by zhatlas Closed Feb 12, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

My system environment is Windows 10, Windows Terminal, Git Bash, Claude Code 1.0.109.

When executing commands with Chinese output, the output shows garbled characters.

<img width="1700" height="455" alt="Image" src="https://github.com/user-attachments/assets/7d418587-46d0-4f03-ab54-db9b45ad5b7c" />

What Should Happen?

Should display Chinese characters

<img width="1826" height="284" alt="Image" src="https://github.com/user-attachments/assets/b5e16981-724d-4460-9271-6b13e3bfb518" />

Error Messages/Logs

Steps to Reproduce

NA

Claude Model

None

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

1.0.109

Platform

Other

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

This is caused by inconsistencies in the multi-layer encoding chain——the bash end is typically set to UTF-8, while the called native Windows commands/external programs (especially PowerShell 5, cmd tools) use the console code page (OEM/ANSI) or UTF-16/CPxxxx in the pipeline, resulting in a mismatch at both ends, naturally causing byte errors.

You can refer to this issue: https://github.com/google-gemini/gemini-cli/issues/1945

View original on GitHub ↗

This issue has 8 comments on GitHub. Read the full discussion on GitHub ↗