charset-fix
修正 Windows AI 代理程式編碼
Windows POSIX shells 可能會讓 Python、PowerShell 和 cmd.exe 的中文輸出變成亂碼。此技能提供針對 Claude、Codex 及相關代理程式的 UTF-8 與 GBK 修正方式。
使用我的智慧代理安裝
將此請求複製給你的智慧代理,其中包含權威 Skill 頁面和清單。
Review the Skillstore skill "charset-fix" from https://skillstore.io/skills/gkd2323c-charset-fix.md and its manifest at https://skillstore.io/api/skills/gkd2323c-charset-fix/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智慧代理仍應顯示其計畫,並依安全政策請求必要確認。
Agent 可讀資源
當 AI Agent、爬蟲或腳本需要乾淨脈絡、而不是讀取完整頁面時,請使用這些連結。
測試它
正在使用「charset-fix」。 Codex CLI 在 Git Bash 中執行 Python 時,中文文字顯示為無法閱讀。
預期結果:
此技能會識別 Python 輸出編碼不相符,並建議使用含驗證步驟的 UTF-8 工作階段修正方式。
正在使用「charset-fix」。 從 MSYS2 呼叫 Windows PowerShell 時,輸出變成亂碼。
預期結果:
此技能會說明 Windows PowerShell 主控台編碼問題,並建議在命令執行前設定輸出編碼。
正在使用「charset-fix」。 原生 Windows 命令在 AI 代理程式終端機中回傳無法閱讀的中文文字。
預期結果:
此技能建議將 Windows 命令輸出解碼為 GBK,並將乾淨的 UTF-8 文字傳回終端機。
安全審計
安全The static findings are explained by documentation, examples, and hardcoded local diagnostic commands for Windows encoding. I found no prompt injection, data exfiltration, obfuscation payload, or user-controlled command execution evidence.
風險因素
⚙️ 外部命令 (49)
🌐 網路存取 (1)
分享與引用此報告
分享版本化評估報告、中性徽章、嵌入卡片與引用。Skillstore 只報告證據,不判斷該 Skill 是否安全。
複製報告連結
https://skillstore.io/skills/gkd2323c-charset-fix/audits/4?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/gkd2323c-charset-fix?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/gkd2323c-charset-fix?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/gkd2323c-charset-fix/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/gkd2323c-charset-fix.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>學術引用 (APA · BibTeX · CFF)
APA 引用
gkd2323c. (2026). charset-fix security audit report (audit version 4) [Author version 1.0.0]. Skillstore. https://skillstore.io/skills/gkd2323c-charset-fix/audits/4BibTeX 引用
@techreport{gkd2323c-gkd2323c-charset-fix-2026,
author = {gkd2323c},
title = {charset-fix security audit report (audit version 4)},
institution = {Skillstore},
year = {2026},
number = {4},
url = {https://skillstore.io/skills/gkd2323c-charset-fix/audits/4},
note = {Author version 1.0.0}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "charset-fix security audit report (audit version 4)"
version: "1.0.0"
type: report
authors:
- name: "gkd2323c"
date-released: "2026-07-05"
url: "https://skillstore.io/skills/gkd2323c-charset-fix/audits/4"
identifiers:
- type: other
value: "skillstore:gkd2323c-charset-fix:audit:4"
description: "Skillstore immutable audit report identifier"
Skillstore 評分
評分依據 證據置信度: 高你可以打造什麼
修復代理程式亂碼輸出
修正 AI 編碼代理程式在 Git Bash 或 MSYS2 中執行命令時,無法閱讀的中文或 Unicode 文字。
標準化終端機設定
為在 Windows 上使用 Codex CLI、Claude Code 或 Cursor 的團隊,記錄可重複使用的 UTF-8 設定。
診斷編碼問題回報
判斷是 Python、Windows PowerShell 還是 cmd.exe 導致終端機輸出亂碼。
試試這些提示
使用 charset-fix 修復我的 AI 代理程式在 Windows Git Bash 中輸出的中文亂碼。
使用 charset-fix 讓這個 Windows POSIX shell 工作階段的 Python 輸出為 UTF-8。
使用 charset-fix 判斷是 Python、PowerShell 還是 cmd.exe 導致中文文字無法閱讀。
使用 charset-fix 為 Windows AI 代理程式編碼檢查與驗證建立安全的團隊流程。
最佳實務
- 針對受影響的工具套用所需的最小編碼修正。
- 使用簡短的中文和 Unicode 文字範例驗證輸出。
- 除非團隊已測試永久變更,否則讓修正維持在工作階段範圍內。
避免
- 不要為了修正單一終端機工作階段而變更整個系統地區設定。
- 不要假設每個 Windows shell 都使用相同的輸出編碼。
- 不要未經檢閱就貼上來自不受信任來源的診斷命令。