-
Notifications
You must be signed in to change notification settings - Fork 510
Not work with Cyrillic #1074
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can someone with this issue give this workaround a try that @mklement0 supplied: $OutputEncoding = [console]::InputEncoding = [console]::OutputEncoding = New-Object System.Text.UTF8Encoding |
@tylerl0706: I think in this case the workaround is to ensure that the PS scripts are saved as UTF-8 with BOM: Click on |
Closing this as resolved see encoding documentation: |
I tried different encodings for the document and still getting |
This solution definitely works! Thank you! |
From @altaranenco on October 26, 2017 10:43
Steps to Reproduce:
$xml = [xml](Get-Content -Encoding UTF8 -Path "C:\MaxPatrol_Reports\Отчет Аудит - Серверы - Сектор ИБ 06.06.2017 11-30-00.xml")
Reproduces without extensions: Yes/No
Copied from original issue: microsoft/vscode#36975
The text was updated successfully, but these errors were encountered: