Skip to content

[BUG] windows claude调用skills返回编码有问题 #6

@cenzoO3O

Description

@cenzoO3O

Bug Description / Bug描述

Claude CLI调用skills返回有unicode图标&表情导致返回编码错误

Environment / 运行环境

  • OS: Windows 11

Affected Skill / 受影响的 Skill

  • [ √] collaborating-with-codex
  • [ √] collaborating-with-gemini

Steps to Reproduce / 复现步骤

claude正常调用collaborating-with-codex/ collaborating-with-gemini就会返回编码有问题

解决方案

collaborating-with-gemini\scripts\gemini_bridge.py
collaborating-with-codex\scripts\codex_bridge.py

# windows环境将标准输出的编码强制设置为UTF-8
import sys
if sys.platform == 'win32':
    sys.stdout.reconfigure(encoding='utf-8')

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions