Skip to content

Bug: Windows GBK encoding causes UnicodeEncodeError in doctor command #7537

@benben951

Description

@benben951

Problem

When running hermes doctor on Windows, the CLI crashes:

UnicodeEncodeError: 'gbk' codec can't encode character '\U0001fa7a' in position 18: illegal multibyte sequence

Root Cause

Windows default console encoding is GBK, which cannot encode Unicode emoji characters like 🩺.

Environment

  • Windows 10/11
  • Python 3.12
  • Hermes 0.8.0

Solution

Replace emoji with ASCII equivalents in doctor.py, or add encoding fallback.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium — degraded but workaround existscomp/cliCLI entry point, hermes_cli/, setup wizardtype/bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions