Skip to content

Not work with Cyrillic #36975

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

Closed
altaranenco opened this issue Oct 26, 2017 · 1 comment
Closed

Not work with Cyrillic #36975

altaranenco opened this issue Oct 26, 2017 · 1 comment

Comments

@altaranenco
Copy link

  • VSCode Version: Code 1.17.2 (b813d12, 2017-10-16T13:59:46.104Z)
  • OS Version: Windows_NT x64 10.0.15063
  • Extensions:
Extension Author (truncated) Version
PowerShell ms- 1.4.3

Steps to Reproduce:

  1. Try to load XML file with Cyrillic letters in file name
    $xml = [xml](Get-Content -Encoding UTF8 -Path "C:\MaxPatrol_Reports\Отчет Аудит - Серверы - Сектор ИБ 06.06.2017 11-30-00.xml")
  2. Have an error

Get-Content : Cannot find path 'C:\MaxPatrol_Reports\Отчет Аудит - Серверы - Сектор �Б 06.06.2017 11-30-00.xml' because it does
not exist.
At C:\MaxPatrol_Reports\dataset.ps1:1 char:14

  • ... xml = [xml](Get-Content -Encoding UTF8 -Path "C:\MaxPatrol_Reports\Рћ ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (C:\MaxPatrol_Re...17 11-30-00.xml:String) [Get-Content], ItemNotFoundException
    • FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand
  1. If we run same code at Visual Studio Code x32 or native PowerShell it's work without errors

Reproduces without extensions: Yes/No

@dbaeumer
Copy link
Member

This issue was moved to PowerShell/vscode-powershell#1074

@vscodebot vscodebot bot locked and limited conversation to collaborators Dec 10, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants