18 lines
1.1 KiB
PowerShell
18 lines
1.1 KiB
PowerShell
$ErrorActionPreference = "Stop"
|
|
|
|
# Always start from this project directory
|
|
Set-Location -Path $PSScriptRoot
|
|
|
|
# Force UTF-8 in current terminal session
|
|
chcp 65001 | Out-Null
|
|
[Console]::InputEncoding = [System.Text.UTF8Encoding]::new()
|
|
[Console]::OutputEncoding = [System.Text.UTF8Encoding]::new()
|
|
$OutputEncoding = [Console]::OutputEncoding
|
|
|
|
# Ensure Python uses UTF-8 for IO
|
|
$env:PYTHONUTF8 = "1"
|
|
$env:PYTHONIOENCODING = "utf-8"
|
|
|
|
Write-Host "UTF-8 mode enabled. Starting app.py ..." -ForegroundColor Cyan
|
|
python .\app.py
|