[BUG] Claude code creates a code file or writes to an empty file. Chinese characters are garbled.
Resolved 💬 3 comments Opened Aug 3, 2025 by fengerwoo Closed Aug 15, 2025
Environment
- Platform (select one):
- [*] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: 1.0.67
- Operating System: macOS 12.7.6
- Terminal: Terminal of cursor
Bug Description
For empty files or files automatically created by Claude Code, if the newly written code contains Chinese characters, there is a high probability that the Chinese characters will be garbled.
Steps to Reproduce
- Let Claude Code create a code file with Chinese characters, or write to an already created blank file
- Try a few more times
- You will definitely see garbled Chinese characters
Expected Behavior
The Chinese content in the code is not garbled
Actual Behavior
The Chinese content in the code is garbled
Additional Context
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗