- 在所有 .ps1 脚本中添加 UTF-8 编码兼容块 (Console OutputEncoding/InputEncoding + chcp 65001) - 兼容 Windows PowerShell 5.x, PS 7.x, Windows Terminal, conhost, ISE - 添加 UTF-8 BOM 确保本地执行时编码正确识别 - try/catch 静默处理不支持 Console 类的环境
- 在所有 .ps1 脚本中添加 UTF-8 编码兼容块 (Console OutputEncoding/InputEncoding + chcp 65001) - 兼容 Windows PowerShell 5.x, PS 7.x, Windows Terminal, conhost, ISE - 添加 UTF-8 BOM 确保本地执行时编码正确识别 - try/catch 静默处理不支持 Console 类的环境