Unicode Input Handling Fails for Vietnamese Characters
Resolved 💬 23 comments Opened Jul 19, 2025 by nhungbeo Closed Mar 5, 2026
Bug Description
Tôi bị lôỗi khi gõ tiếng viêệt!
Environment Info
- Platform: win32
- Terminal: windows-terminal
- Version: 1.0.56
- Feedback ID: 7b114bfe-3eb8-44a0-a767-4161b53b31a1
Errors
[{"error":"Error: ENOENT: no such file or directory, open 'C:\\proc\\version'\n at Module.readFileSync (node:fs:441:20)\n at Object.readFileSync (file:///C:/Users/Administrator/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:615:7077)\n at file:///C:/Users/Administrator/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:615:8638\n at Q (file:///C:/Users/Administrator/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:609:14408)\n at kT4 (file:///C:/Users/Administrator/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:709:62815)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-07-19T01:46:53.728Z"},{"error":"RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n at Socket.onChildStdout (node:child_process:482:14)\n at Socket.emit (node:events:518:28)\n at Socket.emit (node:domain:489:12)\n at addChunk (node:internal/streams/readable:561:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)\n at Readable.push (node:internal/streams/readable:392:5)\n at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)","timestamp":"2025-07-19T01:46:55.107Z"}]
23 Comments
Same issue
same issue with Mac, pls fix
I ran into the same problem. While waiting for the official fix, I created a patch script that you can use as a temporary workaround
<img width="720" height="166" alt="Image" src="https://github.com/user-attachments/assets/f04b0c37-0d48-4bee-8cae-a0e19650571f" />
Source: https://gist.github.com/qtnx/2850b394923e94f7db4cca9446fed660
To apply it, run:
It works on macOS and Linux. Windows may require WSL.
Remember to read the script before running it. You might need to reapply the patch after future updates.
Still face issue, I have log 'Could not find g1 function pattern
This version of Claude Code may have a different structure'
It might not work with the latest version 1.0.84, so I’ll update it.
As a workaround on macOS, you can try:
I've just updated the script it should work now.
You've save my life. Ty ( Cảm ơn bác :)))))
Same issue. Please fix.
Same issue, but with Portuguese (Brazil) Characters...
UP
up
This issue seems to cover a multitude of sins but all the related (and more directly relevant) issues have been closed as duplicates of this, so I'll add details here.
Platform: claude code, windows 11 pro, launched from powershell terminal (git bash not supported, I didn't even consider cmd).
Claude generates code with a LOT of unicode symbols, ticks, crosses, arrows, exclamation icons, but if it tries to run any of this code it will crash the run (not the console) immediately when the symbol is output. Claude will usually recognise the mistake and rewrite the code.
This is a phenomenal waste of tokens and time. The code is fine, it works if I launch it manually and the unicode symbols are not a problem in the powershell terminal. It is ONLY a problem INSIDE Claude Code.
Simple repro:
python
print("✓ Test completed successfully")
Save as bug-test.py
Ask Claude Code to run that script.
Result:
Expected result:
Script should run without error.
Claude Code reports:
I launch Claude Code from PowerShell terminal, so either the Command Prompt diagnosis is incorrect, or Claude Code ignores its environment and runs code in an unsuitable alternative.
I have no idea how much of this is hallucination, but Claude Code continued to report:
Same issue. Please fix.
https://github.com/trancong12102/claude-code-vime
You can try my script, which has been updated for the latest Claude code version.
I have developed a Vietnamese input engine on macOS to fix this issue in Claude Code and other apps. You can use it here:
https://github.com/khaphanspace/gonhanh.org
up
@claude please fix it
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
Up
xài https://github.com/0x0a0d/fix-vietnamese-claude-code fix được claude bên npm nha
Closing for now — inactive for too long. Please open a new issue if this is still relevant.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.