Article ID: 67584 - Last Review: May 12, 2003 - Revision: 2.0 Active Code Page Versus Selected Code Page
This article was previously published under Q67584 SUMMARY
The COUNTRY command in CONFIG.SYS can be used to specify a code page that
CHCP then reports. However, the code page is not really made active. The
MODE command reports "No code page has been selected" and KEYB reports
"Active code page not available from CON device."
This behavior is a result of the difference in the definitions of an "active" code page and a "selected" code page. The system has a global "active" code page that it attempts to use when accessing any code page supported device. Additionally, each of these devices has a "selected" code page. The global (active) code page and the individual device code page (selected) do not necessarily match. MORE INFORMATION
The COUNTRY command sets the initial active "global" code page, but does
not select that code page for each device. The CHCP command reports and
changes the global code page, and also attempts to select that code page
for each of the code page devices. You can bypass the CHCP command and
change a device's selected code page directly by using the MODE command as
follows:
MODE CON CODEPAGE SELECT=xxx In summary:
The following example (from page 331 of the "Microsoft MS-DOS User's Reference" version 4.0) demonstrates the interactions of COUNTRY, MODE, and CHCP: CONFIG.SYS ---------- country=049,,a:\country.sys device=display.sys con:=(ega,437,1) AUTOEXEC.BAT ------------ nlsfunc mode con codepage prepare=((850)a:\ega.cpi) chcp 437
APPLIES TO
| Other Resources Other Support Sites
CommunityArticle Translations |






















Back to the top