charmbracelet/bubbletea

Can't write japanese characters in inputfield

xyaman opened this issue · 2 comments

Describe the bug
Whenever I try to write japanese characters in textinput it's get rendered as "?". The inputfield value also contains "?". Every japanese character is rendered as "?"

Setup
Please complete the following information along with version numbers, if applicable.

  • Windows 11
  • Tested with CMD, Powershell, Git-Bash.
  • Tested with wezterm and Windows Terminal

To Reproduce
I have a very similar code with the tutorial, and rendering is being made by textinput. I'm using Microsoft IME.

Screenshots
image
Should be 6 characters, but instead it shows "??????" (6*"?")

Additional context
Japanese characters rendering besides textinput is working fine.
image

Feels like same issue from here #197 (comment) (20 months old bug already). I saw people saying that it only occurs on Windows, but can't double-check it myself (I only have windows laptops rn).

Hi! This should be fixed now in Bubble Tea v0.26.x. If not, please reopen the issue.