run_ch4.ps1: ตั้ง PYTHONIOENCODING ก่อนเทสต์ออฟไลน์
Browse files- run_ch4.ps1 +1 -0
run_ch4.ps1
CHANGED
|
@@ -25,6 +25,7 @@ param(
|
|
| 25 |
|
| 26 |
$ErrorActionPreference = "Stop"
|
| 27 |
Set-Location $PSScriptRoot
|
|
|
|
| 28 |
function Fail($msg) { Write-Host "❌ $msg" -ForegroundColor Red; exit 1 }
|
| 29 |
|
| 30 |
Write-Host "== ตรวจก่อนรัน ($System) ==" -ForegroundColor Cyan
|
|
|
|
| 25 |
|
| 26 |
$ErrorActionPreference = "Stop"
|
| 27 |
Set-Location $PSScriptRoot
|
| 28 |
+
$env:PYTHONIOENCODING = "utf-8" # ก่อนเทสต์ออฟไลน์ด้วย — ส่งผลผ่าน pipe แล้ว Windows ใช้ cp874 พิมพ์ ✓ ไม่ได้
|
| 29 |
function Fail($msg) { Write-Host "❌ $msg" -ForegroundColor Red; exit 1 }
|
| 30 |
|
| 31 |
Write-Host "== ตรวจก่อนรัน ($System) ==" -ForegroundColor Cyan
|