[BUG] error typing Vietnamese telex

Resolved 💬 23 comments Opened Sep 21, 2025 by yeucodonvn Closed May 24, 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?

I'm having an error typing Vietnamese telex, I use windows terminal and vscode terminal both have the same problem, copy and paste is still normal, I tried changing the typing method but it doesn't work, I uninstalled Claude Code and reinstalled but it doesn't work

  • 1.0.120 (Claude Code)
  • windows 11 pro
  • windows terminal
  • - nodejs v22

https://github.com/user-attachments/assets/556158c0-e883-4415-aca0-f2ba9dae5d94

What Should Happen?

I'm having an error typing Vietnamese telex, I use windows terminal and vscode terminal both have the same problem, copy and paste is still normal, I tried changing the typing method but it doesn't work, I uninstalled Claude Code and reinstalled but it doesn't work

  • 1.0.120 (Claude Code)
  • windows 11 pro
  • windows terminal
  • - nodejs v22

Error Messages/Logs

Steps to Reproduce

  1. run claude code
  2. type example "hãy sửa code" unicode telex

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

1.0.120 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

_No response_

View original on GitHub ↗

23 Comments

dikhamchua · 9 months ago

same on :
claude code v2.0.14
window 11 pro
nodejs v22.17.1

chiminhtathoj · 8 months ago

Same here

trancong12102 · 7 months ago

https://github.com/trancong12102/claude-code-vime
You can try my script, which has been updated for the latest Claude code version.

khaphanspace · 7 months ago

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

github-actions[bot] · 6 months ago

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.

pitimon · 5 months ago

Thai Language Also Affected

Same issue with Thai language input on macOS.

Environment

  • OS: macOS 15.2 (Darwin 25.2.0)
  • Terminal: iTerm2 / Terminal.app
  • Claude Code: Latest version
  • Input Method: macOS Thai keyboard

Problem

Thai characters with combining vowels and tone marks display incorrectly when typing directly in Claude Code CLI prompt. The vowels get separated from consonants:

What I type: ภาษาไทยพิมพ์ไม่ถูกต้อง
What displays: ภาษาไทยพิ มพ์ ไม่ ถู กต้ อง (spaces inserted between consonants and vowels)

Workaround

Copy/paste works correctly - only direct typing is broken.

Root Cause (Same as Vietnamese)

Thai uses combining characters for:

  • Vowels above/below consonants (สระบน/ล่าง): ิ ี ึ ื ุ ู
  • Tone marks (วรรณยุกต์): ่ ้ ๊ ๋
  • Vowel marks that wrap around consonants: เ แ โ ไ ใ

Claude Code CLI's custom input handling doesn't properly handle these combining characters.

Impact

Affects Thai users who need to communicate in their native language.

+1 for fixing IME/combining character support across all affected languages (Vietnamese, Thai, Korean, Chinese, Japanese, etc.)

khuehm1511 · 5 months ago

Same on
claude code v2.1.20 native
window 11 pro

Thanh-To-GameEng · 5 months ago

Same issue here. Windows 11, PowerShell terminal. Vietnamese Telex input - characters like ư, ợ, ơ cannot be typed in Claude Code input row, but work normally in regular PowerShell prompt. Copy-paste works as a workaround. Claude Code version: latest.

0x0a0d · 5 months ago

xài https://github.com/0x0a0d/fix-vietnamese-claude-code fix được claude bên npm nha

Thanh-To-GameEng · 5 months ago
xài https://github.com/0x0a0d/fix-vietnamese-claude-code fix được claude bên npm nha

cám ơn nhưng vẫn còn lỗi nếu gõ dấu ở cuối chữ. Mình dùng EVKey

<img width="397" height="75" alt="Image" src="https://github.com/user-attachments/assets/0730568c-3722-421d-927b-1a8872f7e6e4" />

0x0a0d · 5 months ago
> xài https://github.com/0x0a0d/fix-vietnamese-claude-code fix được claude bên npm nha cám ơn nhưng vẫn còn lỗi nếu gõ dấu ở cuối chữ. Mình dùng EVKey <img alt="Image" width="397" height="75" src="https://private-user-images.githubusercontent.com/99632799/546090945-0730568c-3722-421d-927b-1a8872f7e6e4.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzAzNzAyOTQsIm5iZiI6MTc3MDM2OTk5NCwicGF0aCI6Ii85OTYzMjc5OS81NDYwOTA5NDUtMDczMDU2OGMtMzcyMi00MjFkLTkyN2ItMWE4ODcyZjdlNmU0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAyMDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMjA2VDA5MjYzNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRiZTcxZWE2Y2EzNjFhOTIxMGFkMDEwNTRmNTEyMGY2YzE5NTU0NTRlYmFhOTJkYzBkMjRmMzRlOTRhNTdkZDMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.4O399nxsDgEgvqI0uIjUKpAs2sZrKoeRkLeHh3U9g2g">

gỡ cài lại thử bác ơi

yeucodonvn · 5 months ago
xài https://github.com/0x0a0d/fix-vietnamese-claude-code fix được claude bên npm nha

dùng evkey trên windows telex unicode gõ vẫn mất chữ ạ ví dụ chữ "của"

0x0a0d · 5 months ago
> xài https://github.com/0x0a0d/fix-vietnamese-claude-code fix được claude bên npm nha dùng evkey trên windows telex unicode gõ vẫn mất chữ ạ ví dụ chữ "của"

<img width="1281" height="684" alt="Image" src="https://github.com/user-attachments/assets/d1db41c7-820c-4067-861d-99c5e4a7eb9a" />

doanbactam · 4 months ago

+1

khaphanspace · 4 months ago

Các bạn cài đặt Gõ Nhanh sẽ gõ được nhé. Ngoài Claude Code thì toàn bộ các app khác (Zen, Spotlight, Safari...) cũng hỗ trợ mượt mà

https://github.com/khaphanspace/gonhanh.org

doanbactam · 4 months ago
Các bạn cài đặt Gõ Nhanh sẽ gõ được nhé. Ngoài Claude Code thì toàn bộ các app khác (Zen, Spotlight, Safari...) cũng hỗ trợ mượt mà https://github.com/khaphanspace/gonhanh.org

Sếp có kế hoạch cho win và linux không ạ

tvtdev94 · 4 months ago

I've created a fix that addresses the root cause of this issue on Windows: claude-code-vietnamese-fix

Root cause: Vietnamese IMEs (Unikey, OpenKey, EVKey) send backspace + replacement character as separate events. Claude Code's React-based input handler computes cursor state once per render — so multiple rapid backspaces all operate on the same stale state, causing only 1 of N backspaces to take effect.

Fix: Two-layer patch — an outer wrapper buffers rapid backspace events (16ms window) and combines them with the replacement character, then processes everything atomically through the existing \x7f handler.

One command to apply: node patch-vietnamese-ime.js

Tested with Unikey Telex on Windows 11, Claude Code v2.1.74. Other IMEs (OpenKey, EVKey) and input methods (VNI, VIQR) are untested but should work with the same mechanism.

hoquanganh09 · 4 months ago

+1 Confirming this bug on Windows 11 Pro with Claude Code CLI. Vietnamese IME (Unikey/EVKey) causes double characters when typing directly in the TUI — e.g. "xin chào" becomes "xin chaào". Copy-paste works fine as a workaround. The experimental.input.forceVT Windows Terminal setting does not fix the issue since Claude Code uses its own input handling layer.

tvtdev94 · 3 months ago

Update v2.0.1 — now supports the native binary (WinGet, macOS, Linux) in addition to npm install.

npx claude-code-vietnamese-fix

Auto-detects whether you have the npm (cli.js) or binary version and patches accordingly. Tested on Windows 11 with WinGet binary.

kenzouno1 · 3 months ago

+1

charlietran96 · 3 months ago

+1

github-actions[bot] · 1 month ago

Closing for now — inactive for too long. Please open a new issue if this is still relevant.

github-actions[bot] · 1 day ago

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.