diff --git a/utils/osdetail/powershell_windows.go b/utils/osdetail/powershell_windows.go index a7d63a4..07c36fc 100644 --- a/utils/osdetail/powershell_windows.go +++ b/utils/osdetail/powershell_windows.go @@ -13,7 +13,7 @@ func runPowershellCmd(script string) (output string, err error) { "powershell.exe", "-NoProfile", "-NonInteractive", - script, + "[System.Console]::OutputEncoding = [System.Text.Encoding]::UTF8\n"+script, ) // Create and assign output buffers.