Invalid displayed character in cmd commands
search cancel

Invalid displayed character in cmd commands

book

Article ID: 259999

calendar_today

Updated On:

Products

CA Client Automation - IT Client Manager CA Client Automation

Issue/Introduction

cmd commands like "caf status", "caf start" etc... display invalid German, French or Spanish characters.
 
Examples :
 
German
 
 
French
 
 
Spanish

Environment

Client Automation 14.0, 14.5
Language set to German, Spanish or French

Cause

When displaying messages into Command Prompt (cmd), Client Automation calls some Windows functions to convert the strings to OEM code page format.
 
The default OEM Code Page used by Windows is found under 
 
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\CodePage\OEMCP
 
By default the value is 850
 
Strings are converted in codepage 850 and this is causing some display problems for specific characters in German, French or Spanish language

Resolution

A solution is to change the default OEM Code Page used by Windows for Command Prompt from 850 to 1252
 
Execute this command to change OEMCP to 1252 :
reg ADD HKLM\SYSTEM\CurrentControlSet\Control\Nls\CodePage /v OEMCP  /t REG_SZ /d 1252 /f
 
This settings is a global Windows settings and could affect other applications which are displaying text in Command Prompt.

Additional Information

To revert the change following command line could be used to set OEMCP to 850
reg ADD HKLM\SYSTEM\CurrentControlSet\Control\Nls\CodePage /v OEMCP  /t REG_SZ /d 850 /f