Add support for Russian characters for PowerShell within #6953

Closed
opened 2026-01-31 00:51:24 +00:00 by claunia · 10 comments
Owner

Originally created by @SiarheiKuchukBelitsoft on GitHub (Mar 18, 2020).

This is how it looks now if to type on Russian
image

Originally created by @SiarheiKuchukBelitsoft on GitHub (Mar 18, 2020). This is how it looks now if to type on Russian ![image](https://user-images.githubusercontent.com/60220228/76946420-0fe33680-6915-11ea-81be-a4b836da6207.png)
claunia added the Needs-TriageResolution-ExternalNeeds-Tag-FixProduct-Powershell labels 2026-01-31 00:51:24 +00:00
Author
Owner

@ertyz commented on GitHub (Mar 18, 2020):

it's a system-wide problem. Not a WT. You can see the same issue in your regular PowerShell console.
The reason is: Your current code page in powershell likely is set to "437 (OEM - US)".
To see normal Cyrillic characters it should be set for example to "866 (OEM - Rus)".

You can activate it for whole system in Classic Control Panel -> Region -> Administrative
and set "Current language for non-Unicode programs" to "Russian" (or other Cyr language)

@ertyz commented on GitHub (Mar 18, 2020): it's a system-wide problem. Not a WT. You can see the same issue in your regular PowerShell console. The reason is: Your current code page in powershell likely is set to "437 (OEM - US)". To see normal Cyrillic characters it should be set for example to "866 (OEM - Rus)". You can activate it for whole system in Classic Control Panel -> Region -> Administrative and set "Current language for non-Unicode programs" to "Russian" (or other Cyr language)
Author
Owner

@SiarheiKuchukBelitsoft commented on GitHub (Mar 18, 2020):

@ertyz Thanks. I thought that you were using Unicode and stuff behind the scenes and those setting will go away

@SiarheiKuchukBelitsoft commented on GitHub (Mar 18, 2020): @ertyz Thanks. I thought that you were using Unicode and stuff behind the scenes and those setting will go away
Author
Owner

@SiarheiKuchukBelitsoft commented on GitHub (Mar 18, 2020):

@ertyz Can I ask you to just consider switching to Unicode by-default for PowerShell since it sounds like we have modern technologies with ASCII epoch

@SiarheiKuchukBelitsoft commented on GitHub (Mar 18, 2020): @ertyz Can I ask you to just consider switching to Unicode by-default for PowerShell since it sounds like we have modern technologies with ASCII epoch
Author
Owner

@zadjii-msft commented on GitHub (Mar 18, 2020):

@SiarheiKuchukBelitsoft That might be a request that's better suited for the Powershell repo, powershell/powershell. I'd think that the newer versions of powershell might just handle this better already. The one that's pre-installed on Windows is Powershell 5, and Powershell 7 was just released

@zadjii-msft commented on GitHub (Mar 18, 2020): @SiarheiKuchukBelitsoft That might be a request that's better suited for the Powershell repo, [powershell/powershell](https://github.com/powershell/powershell). I'd think that the newer versions of powershell might just handle this better already. The one that's pre-installed on Windows is Powershell 5, and Powershell **7** was just released
Author
Owner

@SiarheiKuchukBelitsoft commented on GitHub (Mar 18, 2020):

@zadjii-msft Thanks for your input!
@ertyz, Thanks for so fast response!

@SiarheiKuchukBelitsoft commented on GitHub (Mar 18, 2020): @zadjii-msft Thanks for your input! @ertyz, Thanks for so fast response!
Author
Owner

@SiarheiKuchukBelitsoft commented on GitHub (Mar 18, 2020):

I've just checked, Powershell 7 indeed works with Unicode out of the box!

@SiarheiKuchukBelitsoft commented on GitHub (Mar 18, 2020): I've just checked, Powershell 7 indeed works with Unicode out of the box!
Author
Owner

@Aliaksandr3by commented on GitHub (Jan 8, 2021):

[Console]::OutputEncoding = [System.Text.Encoding]::GetEncoding("utf-8")

image

@Aliaksandr3by commented on GitHub (Jan 8, 2021): [Console]::OutputEncoding = [System.Text.Encoding]::GetEncoding("utf-8") ![image](https://user-images.githubusercontent.com/11432724/103971453-aa01bd00-517b-11eb-91bc-0500a6322f50.png)
Author
Owner

@Don-Vito commented on GitHub (Jan 8, 2021):

[Console]::OutputEncoding = [System.Text.Encoding]::GetEncoding("utf-8")

@Aliaksandr3by - Cool! Seems to work in terminal as well:
image

@Don-Vito commented on GitHub (Jan 8, 2021): > [Console]::OutputEncoding = [System.Text.Encoding]::GetEncoding("utf-8") @Aliaksandr3by - Cool! Seems to work in terminal as well: ![image](https://user-images.githubusercontent.com/4639110/103987226-d4ac3f80-5194-11eb-9501-e7d8a67b82f5.png)
Author
Owner

@drweb86 commented on GitHub (Jan 11, 2021):

@Aliaksandr3by It would be better if that it will enabled by default

@drweb86 commented on GitHub (Jan 11, 2021): @Aliaksandr3by It would be better if that it will enabled by default
Author
Owner

@Aliaksandr3by commented on GitHub (Jan 11, 2021):

@Aliaksandr3by It would be better if that it will enabled by default

I use pwsh7
https://github.com/PowerShell/PowerShell

You might use

%windir%\system32\WindowsPowerShell\v1.0
and to create either file:
notepad $pshome\profile.ps1
or
notepad $pshome\Microsoft.PowerShell_profile.ps1
image

@Aliaksandr3by commented on GitHub (Jan 11, 2021): > > > @Aliaksandr3by It would be better if that it will enabled by default I use pwsh7 https://github.com/PowerShell/PowerShell You might use %windir%\system32\WindowsPowerShell\v1.0 and to create either file: notepad $pshome\profile.ps1 or notepad $pshome\Microsoft.PowerShell_profile.ps1 ![image](https://user-images.githubusercontent.com/11432724/104163020-bf3e4c00-5406-11eb-8988-7bc2bb86cab1.png)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#6953