Loading...
Loading...
Detect and fix PowerShell script encoding issues that cause Korean and other non-ASCII characters to display incorrectly on Windows. Use when (1) PowerShell scripts display garbled Korean/non-ASCII text, (2) creating new .ps1 files with non-ASCII content, (3) validating encoding before committing PowerShell scripts, or (4) troubleshooting character display issues in PowerShell output.
npx skill4agent add mineru98/skills-store powershell-utf8-fixer???Write-Hostnode scripts/check_powershell_encoding.js <file_or_directory>
# Or with npm:
npm run check <file_or_directory>node scripts/fix_powershell_encoding.js <file_or_directory>
# Or with npm:
npm run fix <file_or_directory>.ps1node scripts/fix_powershell_encoding.js script.ps1node scripts/check_powershell_encoding.js problematic_script.ps1node scripts/fix_powershell_encoding.js problematic_script.ps1# Check all scripts
node scripts/check_powershell_encoding.js scripts/windows/
# Fix all scripts that need it
node scripts/fix_powershell_encoding.js scripts/windows/.ps1.ps1{
"[powershell]": {
"files.encoding": "utf8bom"
}
}{
"[powershell]": {
"files.encoding": "utf8bom"
}
}node scripts/check_powershell_encoding.js <file_or_directory>node scripts/fix_powershell_encoding.js <file_or_directory>.ps1EF BB BF[Console]::OutputEncoding-Encoding UTF8