Windows Character Encoding Fix for AI Agents Fix garbled Chinese/Unicode text output when running AI agents on Windows through POSIX-compatible shells. Problem When AI agents run commands on Windows through POSIX shells (Git Bash, MSYS2, BusyBox, or any Unix-like shell layer), text output containing Chinese or extended Unicode characters often appears garbled: Root Cause | Layer | Encoding | Why | |-------|----------|-----| | Windows system | GBK/GB2312 (CP936) | Default code page for Chinese Windows | | Python 3 | GBK | auto-detects system code page | | PowerShell (powershell.exe) | GB2312 |…