How to check the current encoding of Windows PowerShell or Command Prompt?

How to check the current encoding of Windows PowerShell or Command Prompt?

book

Article ID: KB0084164

calendar_today

Updated On:

Products Versions
TIBCO Runtime Agent (TRA) -
TIBCO Enterprise Administrator (TEA) -

Description

When running commands like AppManage from Windows PowerShell or Command Prompt, improper encoding may cause issues because some characters such as hyphen ('-') and underscore ('_') might be interpreted differently. Users should check the current encoding or active code page number if commands which used to work behave differently.

Environment

Microsoft Windows

Resolution

Use command chcp to display the active code page number.

Use command chcp ### (for example, chcp 437) to change the code. 

(*** It is recommended to use code page 437, United States, when running TRA commands like AppmManage. ). 

The link below shows the active code/encoding list:

https://msdn.microsoft.com/en-us/library/windows/desktop/dd317756(v=vs.85).aspx

Issue/Introduction

View current encoding of Windows PowerShell or Command Prompt.

Additional Information

https://msdn.microsoft.com/en-us/library/windows/desktop/dd317756(v=vs.85).aspx