Character Sets for HP Emulation

  • 7021610
  • 30-Mar-2000
  • 01-Apr-2018

Environment

Reflection for HP version 13.0 through 14.x
HP UNIX System
HP 3000

Situation

Reflection uses the ASCII character set for most common characters (such as letters and numbers) and the host character set for national and special characters. Additionally, Microsoft Windows uses the ANSI character set, which is similar to the ASCII character set. This technical note contains character translation tables for ASCII, ANSI, and the Reflection character sets for HP Emulation.

Resolution

ASCII Character Set

Most microcomputers, computer terminals, and printers use ASCII codes to represent standard printable characters, including letters, numbers, and punctuation characters. The ASCII character set consists of characters with decimal values 0-127. The characters 0-31 are control codes; they appear on your screen only when display functions are enabled. Refer to online help for more information on display functions and control codes.

Figure 1 - ASCII Character Set
Figure 1 - ASCII Character Set

ANSI Character Set

ANSI is an extension of the ASCII character set and is used by Microsoft Windows to display and print standard characters. It includes all the ASCII characters plus additional characters represented with decimal values 128-255. The ASCII and ANSI character sets are identical for decimal values 32-126.

Reflection can send and receive characters in either the ASCII character set or the host's supported character set. Characters used by Reflection must be converted to ANSI before they can be displayed by other Windows applications.

Note: The ANSI characters below correspond to ANSI code page 1252, which is most commonly used in the United States and Western Europe. If your keyboard is set to use a different ANSI code page, the characters you see will differ from the characters shown below.

Figure 2 - ANSI Character Set
Figure 2 - ANSI Character Set

Entering Characters Using the Alt Key Method

To enter a special ANSI character using the Alt key:

  1. Start Reflection and log in to the host as you usually do.
  2. Click Terminal on the Setup menu to open the Terminal Setup dialog box.
  3. On the Emulation panel, click the Advanced button.
  4. Verify that the National Replacement Set list is set to None (the default value).
  5. Click OK (twice) to close both dialog boxes.
  6. Find the ANSI decimal value for the character in the table above.
  7. Hold down the Alt key, type 0 (zero), and then type the 3-digit decimal code on your numeric keypad.
  8. Release the Alt key. The character represented by the ANSI value you typed appears on the screen.

IBM PC Extended Character Set

Windows applications can display only those characters from the IBM PC extended character set (ECS) that also appear in the ANSI character set. You can enter any common character, even if the ECS code is different from the ANSI code; Windows automatically performs the conversion for you.

Figure 3 - IBM PC Extended Character Set
Figure 3 - IBM PC Extended Character Set

Entering Characters from the IBM Extended Character Set

To enter a character in the terminal window from the IBM extended character set:

  1. Start Reflection and log in to the host as you usually do.
  2. Click Terminal on the Setup menu, and on the Emulation panel click Advanced.
  3. Verify that the National Replacement Set box is set to its default value of None.
  4. Click OK (twice) to close both dialog boxes.
  5. Find the ECS decimal value for the character you want in the table below.
  6. Hold down the Alt key and type the 3-digit decimal code on your numeric keypad. (Do not type a "0" before the code.)
  7. Release the Alt key. Windows converts the code you typed to its ANSI equivalent, and the symbol you specified appears.

Roman 8 Extension Character Set (HP Emulation)

The Roman 8 Extension character set includes special and multinational characters used in non-U.S. ASCII national languages.

Figure 4 - Roman 8 Extension Character Set (HP Emulation)
Figure 4 - Roman 8 Extension Character Set (HP Emulation)

HP Line Drawing Character Set (HP Emulation)

Reflection generates all the characters in the HP line drawing character set, which is an alternate character set comprising simple line and graphic elements. Each letter key generates only one line drawing character, whether the Shift key is pressed or not.

To access the line drawing character set, press Ctrl+N and type the decimal value of the line drawing character you want to see. To return to normal characters, press Ctrl+O. Reflection reverts to the normal character set when the cursor moves to a new row.

In the tables that follow, the character "cell" is shaded to show each line drawing character's position within the cell.

Figure 5 - HP Line Drawing Character Set (HP Emulation)
Figure 5 - HP Line Drawing Character Set (HP Emulation)

Figure 6 - HP Line Drawing Character Set (HP Emulation)
Figure 6 - HP Line Drawing Character Set (HP Emulation)

For more information on control codes and character sets, refer to your Reflection documentation and online help.

Additional Information

Legacy KB ID

This document was originally published as Attachmate Technical Note 1179.

Feedback service temporarily unavailable. For content questions or problems, please contact Support.