Answer the question
In order to leave comments, you need to log in
How to create a file with a Russian name in PowerShell?
Actually a question.
I create the file with the following command:
New-Item -Path D:\TEST\HELLO.txt -ItemType "file"
The file is created but with bugs.
Tried to do chcp 1251
Did not help.
Answer the question
In order to leave comments, you need to log in
It seems like you need to score on this problem. there still the coding can be changed only for an active session. full sadness =)
On Win 10, it is created from under powershell ISE and ConEmu. Not enough data to play - OS version, what console are you using, or is the text written to the file?
What if you try like this?
New-Item -Path D:\TEST\$([char]0x041F)$([char]0x0440)$([char]0x0438)$([char]0x0432)$([char]0x0435)$([char]0x0442).txt -ItemType "file"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question