Microsoft KB Archive/60080

= Codepage Support Setup Information =

Article ID: 60080

Article Last Modified on 5/12/2003

-

APPLIES TO


 * Microsoft MS-DOS 3.1
 * Microsoft MS-DOS 3.2 Standard Edition
 * Microsoft MS-DOS 3.21 Standard Edition
 * Microsoft MS-DOS 3.3 Standard Edition
 * Microsoft MS-DOS 3.3a
 * Microsoft MS-DOS 4.0 Standard Edition
 * Microsoft MS-DOS 4.01 Standard Edition
 * Microsoft MS-DOS 5.0 Standard Edition
 * Microsoft MS-DOS 5.0a
 * Microsoft MS-DOS 6.0 Standard Edition
 * Microsoft MS-DOS 6.2 Standard Edition
 * Microsoft MS-DOS 6.21 Standard Edition
 * Microsoft MS-DOS 6.22 Standard Edition

-



This article was previously published under Q60080



SUMMARY
Microsoft MS-DOS version 3.30 introduced the use of codepages. Codepages can only be used with devices that have codepage support files (such as EGA or LCD displays, or some printers). To install a different codepage on your system, you need to add certain commands to your CONFIG.SYS and AUTOEXEC.BAT files.



MORE INFORMATION
The following commands should be added to your CONFIG.SYS file to add codepage support   DEVICE=[drive:][path]DISPLAY.SYS con=( ,yyy,2) COUNTRY=xxx[,[yyy],[drive:][path]country.sys where: xxx is the country code

yyy is the default codepage used by the machine hardware (in North America, this is usually 437).

The following lines should be added to your AUTOEXEC.BAT file to add codepage support   nlsfunc mode codepage prepare=((www)[drive:][path] .cpi) chcp www mode codepage select=www keyb zz,www,[drive:][path] .cpi where:

www is the codepage for the country

zz is a two-letter keyboard code

is the device to support codepage switching

is the name of the codepage information file

Listed below is a sample codepage setup that demonstrates what changes need to be made to your CONFIG.SYS and AUTOEXEC.BAT files so that you can use the Norwegian Codepage on a system with an EGA display:   rem CONFIG.SYS files=30 buffers=30 device=e:\dos\display.sys con=(ega,437,2) country=001,437,e:\dos\country.sys rem AUTOEXEC.BAT nlsfunc mode con codepage prepare=((850)e:\dos\ega.cpi) chcp 850 mode con codepage select=850 keyb us,850,e:\dos\keyboard.sys

Additional query words: 6.22 3.30 3.30a 4.00 4.01 4.01a 5.00 5.00a 6.00 6.20 code page

Keywords: KB60080

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.