Share via

Output from powershell to cmd

Александр Белый 21 Reputation points
2021-09-10T19:03:36.387+00:00

Hi! Pls help. What i must do for right encoding my command from powershell to cmd?

PS C:\WINDOWS\system32> chcp 65001
Active code page: 65001

PS C:\WINDOWS\system32> $OutputEncoding = [console]::InputEncoding = [console]::OutputEncoding = New-Object System.Text.UTF8Encoding

PS C:\WINDOWS\system32> $OutputEncoding

BodyName : utf-8
EncodingName : Unicode (UTF-8)
HeaderName : utf-8
WebName : utf-8
WindowsCodePage : 1200
IsBrowserDisplay : True
IsBrowserSave : True
IsMailNewsDisplay : True
IsMailNewsSave : True
IsSingleByte : False
EncoderFallback : System.Text.EncoderReplacementFallback
DecoderFallback : System.Text.DecoderReplacementFallback
IsReadOnly : True
CodePage : 65001

PS C:\WINDOWS\system32> """C:\Program Files (x86)\1cv8\8.3.18.1520\bin\1cv8c.exe"" ENTERPRISE /S""1cdev\Testing"" /N""БелыйА"" /Execute ""C:\Users\albelyy\Desktop\Конвейер\СборкаТекстовСценариев.epf"" /C""СобратьСценарии;JsonParams=C:\Users\albelyy\Desktop\Конвейер\params.json""" |cmd
Microsoft Windows [Version 10.0.19042.1165]
(c) Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>"C:\Program Files (x86)\1cv8\8.3.18.1520\bin\1cv8c.exe" ENTERPRISE /S"1cdev\Testing" /N"������������" /Execute "C:\Users\albelyy\Desktop\����������������\������
��������������������������������������.epf" /C"������������������������������;JsonParams=C:\Users\albelyy\Desktop\����������������\params.json"

Windows for business | Windows Server | User experience | PowerShell
0 comments No comments
{count} votes

Answer accepted by question author
  1. Rich Matheisen 48,036 Reputation points
    2021-09-10T21:29:05.85+00:00

    What is the code page if you run CMD.EXE?

    If it's 866 (OEM Russian; Cyrillic (DOS)) you might use that code page instead of 65001. In the USA the default code page is 437.

    Also, the font used by CMD.EXE must contain the characters in the string.

    This may help: what-encoding-code-page-is-cmd-exe-using


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.