Skip to content

Bug Chinese characters display as garbled boxes on Windows #1

@BWMa

Description

@BWMa

Bug Description

Chinese characters (CJK) display as garbled boxes/squares in the dialog window on Windows, while English characters display correctly.

Environment

  • OS: Windows
  • Platform: Windows x64
  • Plugin version: @kirmad/askuserquestion

Steps to Reproduce

  1. Install the plugin: npm install @kirmad/askuserquestion
  2. Configure in opencode.json:
    {
      "plugin": ["@kirmad/askuserquestion"]
    }
  3. Use AskUserQuestion tool with Chinese text:
    AskUserQuestion:
    question: "这是一个中文问题"
    header: "测试"
    options: [
    { label: "选项A", description: "选择A" },
    { label: "选项B", description: "选择B" }
    ]
    4. The dialog appears but Chinese characters show as garbled boxes
    Expected Behavior
    Chinese characters should display correctly in the dialog window.
    Actual Behavior
    Chinese characters display as garbled boxes/squares (□□□), while English characters display normally.
    Additional Notes
  • English text displays correctly
  • This issue affects all CJK characters (Chinese, Japanese, Korean)
  • The issue seems to be related to missing font support for CJK characters in the Windows native GUI dialog

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions