Skip to content

Conversation

@citlalinda
Copy link
Contributor

TLDR

When executing the /copy command on Windows, garbled text occurs because the child process's code page doesn't match the main process's encoding. Therefore, before running /copy, we need to switch the child process's code page to UTF-8 to ensure consistent encoding.

Dive Deeper

Reviewer Test Plan

Use this prompt: "请使用中文介绍JavaScript中??和||的区别", then run /copy command.

Testing Matrix

🍏 🪟 🐧
npm run
npx
Docker
Podman - -
Seatbelt - -

Linked issues / bugs

Fixes #1016

@tanzhenxin
Copy link
Collaborator

LGTM!

@tanzhenxin tanzhenxin merged commit e1f793b into QwenLM:main Nov 20, 2025
14 checks passed
Mr-Jack-Tung pushed a commit to Mr-Jack-Tung/qwen-code that referenced this pull request Nov 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

/copy的内容乱码

2 participants