charset-fix
Fix Windows AI Agent Encoding
Windows POSIX shells can garble Chinese output from Python, PowerShell, and cmd.exe. This skill gives targeted UTF-8 and GBK fixes for Claude, Codex, and related agents.
Install with my Agent
Copy this request to your Agent. It includes the canonical Skill page and manifest.
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.Your Agent should still show its plan and request any confirmation required by the security policy.
Agent-readable resources
Use these links when an AI agent, crawler, or script needs clean context instead of reading the full page.
Test it
Using "charset-fix". Chinese text appears unreadable when Codex CLI runs Python in Git Bash.
Expected outcome:
The skill identifies a Python output encoding mismatch and recommends a UTF-8 session fix with a verification step.
Using "charset-fix". Windows PowerShell output is garbled when called from MSYS2.
Expected outcome:
The skill explains the Windows PowerShell console encoding issue and recommends setting output encoding before the command runs.
Using "charset-fix". A native Windows command returns unreadable Chinese text in an AI agent terminal.
Expected outcome:
The skill recommends decoding the Windows command output as GBK and returning clean UTF-8 text to the terminal.
Security Audit
SafeThe 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.
Risk Factors
⚙️ External commands (49)
🌐 Network access (1)
Share & cite this report
Share the versioned assessment report, neutral badge, embed card, and citations. Skillstore reports evidence without deciding whether this Skill is safe.
Copy report link
https://skillstore.io/skills/gkd2323c-charset-fix/audits/4?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown badge
[](https://skillstore.io/skills/gkd2323c-charset-fix?utm_source=security_passport_badge)HTML badge
<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>Embed card
<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>Academic citations (APA · BibTeX · CFF)
APA citation
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 citation
@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 Score
Why this score Evidence Confidence: HighWhat You Can Build
Repair Garbled Agent Output
Fix unreadable Chinese or Unicode text when an AI coding agent runs commands in Git Bash or MSYS2.
Standardize Terminal Setup
Document repeatable UTF-8 settings for teams that use Codex CLI, Claude Code, or Cursor on Windows.
Diagnose Encoding Reports
Identify whether Python, Windows PowerShell, or cmd.exe is causing garbled terminal output.
Try These Prompts
Use charset-fix to repair garbled Chinese output from my AI agent in Windows Git Bash.
Use charset-fix to make Python output UTF-8 for this Windows POSIX shell session.
Use charset-fix to determine whether Python, PowerShell, or cmd.exe is causing unreadable Chinese text.
Use charset-fix to create a safe team procedure for Windows AI agent encoding checks and verification.
Best Practices
- Apply the smallest encoding fix needed for the affected tool.
- Verify output with a short Chinese and Unicode text sample.
- Keep fixes session-scoped unless the team has tested permanent changes.
Avoid
- Do not change the whole system locale to fix one terminal session.
- Do not assume every Windows shell uses the same output encoding.
- Do not paste diagnostic commands from untrusted sources without review.
Frequently Asked Questions
What problem does this skill solve?
Which tools can use it?
Does it work on macOS or Linux?
Does it permanently change Windows settings?
Why is GBK or CP936 mentioned?
Is the helper script required?
Developer Details
Author
gkd2323cLicense
MIT
Author version
v1.0.0
Skillstore revision
r1
Ref
30c73eac2afe762f6aa9c4553158769369d47351
Maintenance freshness
7/18/2026
Usage
4 downloads · 70 views