octalmage / active-window

Get active window title in Node.js.
160 stars 51 forks source link

Doesn't work with cyrillic on windows #32

Open lunavod opened 5 years ago

lunavod commented 5 years ago

Powershell on windows with cyrillic locale uses koir8-r encoding. To fix this issue, just add

[Console]::OutputEncoding = [System.Text.Encoding]::UTF8

before Write-Host in scripts/windows.ps1