![]() |
Alt Sequences Display Incorrect ASCII Charact |
The information in this document applies to:
WordPerfect® 5.1 for DOS
Problem
Symptoms: Entering certain Alt-sequence characters above 127 will display one character and print and view a different character when another code page is selected. Solutions: When a user selects a different code page, different characters are mapped to the Alt-sequence characters above 127, which are referred to as extended characters. When a CODEPAGE command is used, (or /CP=xxxx with WordPerfect), a corresponding display driver needs to be installed and a MODE command needs to be used to activate the driver. Finally, a CHCP command needs to be issued to make the code page active. This is done as follows: In the CONFIG.SYS file, include the following lines (assuming you have DOS files in C:\DOS): COUNTRY=049,850,C:\DOS\COUNTRY.SYS DEVICE=C:\DOS\DISPLAY.SYS CON=(EGA,850,2) INSTALL=C:\DOS\NLSFUNC.EXE C:\DOS\COUNTRY.SYS In the AUTOEXEC.BAT file, include the following lines (assuming again you have DOS files in C:\DOS): C:\DOS\MODE CON CP PREP=((850) C:\DOS\EGA.CPI) CHCP 850 The following is an explanation of what the command lines do: * The COUNTRY command configures MS-DOS to recognize the character set and punctuation conventions observed when using one of the supported languages. * DISPLAY.SYS reserves space for another code page for the display. It can be told the type of screen you have, the code page that will be used, and the maximum pages to allocate. * NLSFUNC loads country-specific information for National Language Support, or NLS. * MODE loads the code page screen driver into memory. * CHCP 850 selects the code page screen and makes it active. When a code page is selected with the country command or /CP=xxxx in WP, the computer will interpret extended ASCII characters (those with screen values greater than 127) differently, according to the code page table that is selected. However, the screen will not reflect these changes unless the computer is specifically instructed to do so with the DISPLAY, NLSFUNC, MODE and CHCP commands. When those functions are not installed, DOS cannot display the true character entered. By entering Alt-237 with code page 850 selected, you are actually asking WP to print a Y (Y with accent), which is what happens; DOS just doesn't display it. By looking at View Document (Shift-F7,6), WP shows the correct character (a Y, in this case). By selecting the correct character from the list of WP characters (Appendix P), the same thing would have happened. This was a display problem only, due to the absence of a DOS driver. WP printed the requested character. |
Answer:
Details:
Product specifications, packaging, technical support and information (*Specifications*) refer to theUnited States retail English version only. Specifications for other versions may vary. All Specifications, claims, features, representations, and/or comparisons provided are correct to the best of our knowledge of the date of publication, but are subject to change without notice.OUR MAXIMUM AGGREGATE LIABILITY TO YOU AND THAT OF OUR DEALERS AND SUPPLIERS IS LIMITED. IT SHALL NOTEXCEED THE AMOUNT YOU PAID TO ACCESS THE INFORMATION. SEE LEGAL DISCLAIMER. |