Skip to content

Documentation helper crashes on Unicode output in Windows consoles #49

Description

@dajiaohuang

Reproduction

On Windows with Python 3.13 and the default CP1252 console encoding, current main (ea544d88405590eb91b5132eb73ef28546b6b0f3) successfully fetches the official documentation response but crashes while printing it:

python skills/vs-product-qa/references/volcengine-documentation/scripts/volcengine_docs.py fetch "https://www.volcengine.com/docs/85296/1544972?lang=en"
UnicodeEncodeError: 'charmap' codec can't encode characters ...

The endpoint returns Chinese Unicode content even for this URL. Running the same command with PYTHONIOENCODING=utf-8 succeeds, so the request and JSON parsing are not the failure point.

I searched all-state issues, all PR titles/bodies, and repository history for Windows, Unicode, encoding, and documentation-helper reports and found no existing report or pending fix.

Expected behavior

The helper should emit UTF-8 JSON consistently on supported platforms without requiring callers to preconfigure a console-specific environment variable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions