TUI icons show as garbage characters on Windows 10 #8410
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentuiThis relates to changes in v1.0, now that opencode uses opentuiwindows
Description
Description
Bug Description
When running opencode in Windows 10 PowerShell and cmd, the opencode icon shows as garbage characters.
Environment
- opencode version: 1.1.19
- OS: Windows 10 Home Chinese Edition 22H2
- OS Build: 19045.6456
- Install Date: 2022/4/5
- Terminal: PowerShell 5.1.19041.6456 and cmd
Expected Behavior
Interface text should be clear and readable
Actual Behavior
opencode icon shows as garbage characters, same issue exists in both PowerShell and cmd
Plugins
No response
OpenCode version
1.1.19
Steps to reproduce
- Open Win10 PowerShell or cmd
- Run
opencodecommand - Observe the opencode icon text display in the interface
Screenshot and/or share link
Operating System
Windows 10 Home Chinese Edition 22H2
Terminal
PowerShell and cmd
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentuiThis relates to changes in v1.0, now that opencode uses opentuiwindows
Activity
github-actions commentedon Jan 14, 2026
This issue might be a duplicate of existing issues. Please check:
@mentions #3734: CJK characters break some features like @mentions - Character width calculation issuesFeel free to ignore if none of these address your specific case.
[-]CLI icons show as garbage characters on Windows 10[/-][+]TUI icons show as garbage characters on Windows 10[/+]Jnan1999 commentedon Jan 15, 2026
Alright, it suddenly occurred to me that the garbled display might be caused by font settings. I tried right-clicking on the PowerShell title bar, selecting Properties, switching to the Fonts tab, and setting the font to Consolas — this perfectly resolved the issue.
Therefore, I suggest that anyone else encountering the same problem try adjusting the font display settings, especially users running non-English operating systems.
fix(pty): Add UTF-8 encoding defaults for Windows PTY
github-actions commentedon Mar 27, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.