SunPCi User's Guide

Manually Setting the System Code Page

DOS uses the AUTOEXEC.BAT and CONFIG.SYS files to set up system code pages to support a national language. Examples of CONFIG.SYS commands are shown later in this chapter. Remember, when you change your CONFIG.SYS file, you must reboot the SunPCi window to enable the new settings.

To set up your system to support a character set, follow this procedure.

  1. In your CONFIG.SYS file, perform the following steps:

    1. Use the country configuration command to control country-specific characteristics such as the time format, date format, currency symbol, and character-sorting sequence.

    2. Use a device configuration command to tell DOS the hardware code page is a device and to allocate buffers for prepared code pages.

    3. Use an nlsfunc command to load the memory-resident national support functions. If you forget to issue the nlsfunc command, DOS will not allow you to specify code pages or keyboard codes.

  2. In your AUTOEXEC.BAT file, use the following commands:

    1. Use a mode cp prepare command to prepare code pages for each device that supports code-page switching.

    2. Use a keyb command to select the keyboard layout.

    3. Use a chcp command to select the code pages for all prepared devices. DOS automatically prepares two system code pages and selects the primary code page for your country. If you want to use the other code page prepared for your country, you can use the chcp command again.