@echo off REM Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. REM This script changes the code page ot MSDOS command prompt to REM match the Windows ANSI code pages. Without this OMBPlus would REM not be able to correctly display some charaters in various REM languages. That is because there is a bug in Sun's JDK REM (bug id 4153167) which always wrongly assumes the ANSI code REM pages, even when the Java process is started from a MSDOS REM command prompt console. REM The translation is not done for asian code pages, since they REM are the same for ANSI and OEM (MSDOS). if not defined systemroot goto end REM Code page 437 United States chcp | %systemroot%\system32\find /c "437" > nul if not errorlevel 1 goto end REM Code page 850 Western Europe chcp | %systemroot%\system32\find /c "850" > nul if not errorlevel 1 goto cp850 REM Code page 852 Central Europe chcp | %systemroot%\system32\find /c "852" > nul if not errorlevel 1 goto cp852 REM Code page 855 Cyrillic chcp | %systemroot%\system32\find /c "855" > nul if not errorlevel 1 goto cp855 REM Code page 737 Greek chcp | %systemroot%\system32\find /c "737" > nul if not errorlevel 1 goto cp737 REM Code page 857 Turkish chcp | %systemroot%\system32\find /c "857" > nul if not errorlevel 1 goto cp857 REM Code page 862 Hebrew chcp | %systemroot%\system32\find /c "862" > nul if not errorlevel 1 goto cp862 REM Code page 720 Arabic chcp | %systemroot%\system32\find /c "720" > nul if not errorlevel 1 goto cp720 REM Code page 775 Baltic chcp | %systemroot%\system32\find /c "775" > nul if not errorlevel 1 goto cp775 goto :end :cp850 REM "Current code 850, changing to 1252" chcp 1252 > nul goto end :cp852 REM "Current code 852, changing to 1250" chcp 1250 > nul goto end :cp855 REM "Current code 855, changing to 1251" chcp 1251 > nul goto end :cp737 REM "Current code 737, changing to 1253" chcp 1253 > nul goto end :cp857 REM "Current code 857, changing to 1254" chcp 1254 > nul goto end :cp862 REM "Current code 862, changing to 1255" chcp 1255 > nul goto end :cp720 REM "Current code 720, changing to 1256" chcp 1256 > nul goto end :cp775 REM "Current code 775, changing to 1257" chcp 1257 > nul goto end :end REM "End of script"