Troubleshooting
Problem
This document provides information on printing National Language Support (NLS) characters using Host Print Transform (HPT).
Resolving The Problem
This document provides information on printing National Language Support (NLS) characters using Host Print Transform (HPT). This information includes generating spooled files with the correct Character identifier (CHRID) parameter specified, creating *LAN 3812 device descriptions with the correct Character identifier (CHRID) parameter specified, and creating a modified Workstation Customizing Object (WSCST) to request translation from a specific EBCDIC code page to a specific ASCII code page and to send a specific HP PCL Symbol Set command to the printer.
NOTE: When printing through an IBM i Access for Windows or IBM Access Client Solutions PC5250 printer session, the CHRID specified in the printer device description is used, not the CHRID specified in the spooled file.
Basic Steps for Creating and Using a Workstation Customization Object
The following are the basic steps for creating and using a Workstation Customization Object (WSCST). Regardless of the particular issue(s) you are attempting to resolve, these steps must always be taken. This information is intended to provide a 'quick start' to creating a WSCST object for users who have at least some familiarity with creating them and with configuring printers.
Note: Information on creating a WSCST object can be found in the following document:
N1010140: Instructions for Modifying a Workstation Customizing Object (WSCST)
The following are the basic 'quick start' steps.
Step 1: Retrieve the WSCST source code. Type the following command on the operating system command line:
RTVWSCST DEVTYPE(*TRANSFORM) MFRTYPMDL(*HP4) SRCMBR(HP4) SRCFILE(QGPL/QTXTSRC)
Press the Enter key.
Step 2: Edit the source code by using PDM or SEU:
Make any changes necessary to the WSCST object source code. Refer to one of the following sections New Method -- Removing the CPICOR Tags, Old Method -- Modifying the CPICOR Tags, or Raster Mode Method -- for Printers That Do Not Use Scalable Fonts to make your changes, then save and exit. Continue with Step 3.
Step 3: Use the CRTWSCST command to create the WSCST object. On the operating system command line type the following:
CRTWSCST WSCST(QGPL/HP4) SRCFILE(QGPL/QTXTSRC)
Press the Enter key.
Step 4: Add the WSCST to the printer configuration by using the Change Device Print command (CHGDEVPRT), the Change Output Queue command (CHGOUTQ), or by changing the PC5250 printer emulation session configuration.
Note: If any changes are made to the WSCST object source code after the CRTWSCST command has been issued, it is necessary to issue the CRTWSCST command again. The printer writer must be ended and restarted for the changes to take effect.
Printing National Language Support (NLS) Characters using Host Print Transform (HPT)
There are two basic parts to setting up a modified Workstation Customizing Object (WSCST) to customize the EBCDIC-to-ASCI Code Page mapping to have Host Print Transform (HPT) print spooled files using specific National Language Support (NLS) characters:
Customizing EBCDIC-to-ASCII Code Page Mapping
EBCDIC-to-ASCII mapping tables convert an EBCDIC character specified in an application data stream into an ASCII character code value (for that same character). The EBCDIC-to-ASCII mapping table used for a given ASCII printer depends on the manufacturer, type, and model configured for the printer. Different types of ASCII printers support different ASCII code pages. The code page in use at any time is determined by a command to select the ASCII code page.
You can customize the EBCDIC-to-ASCII mapping that should be used for an ASCII printer. You can customize the mapping to replace the entire ASCII code page mapped to an EBCDIC code page. For example, the U.S. English EBCDIC code page 037 normally maps to the ASCII code page 437. You could use these tags to map EBCDIC code page 037 to an ASCII code page other than 437 (such as ASCII code page 850).
The following code page mapping tables are available on the AS/400 system for use by the Host Print Transform (HPT) function. The default mapping table is the mapping table used if you do not override the default table using a customizing object.
Information on the EBCDIC-to-ASCII Table Entry (EBCASCTBLE) Tag
The EBCASCTBLE (EBCDIC-to-ASCII mapping table entry) tag is used to specify the EBCDIC-to-ASCII conversion table for mapping the EBCDIC code page for the print data in an IBM i spooled file to the ASCII code page used for a printer. The EBCASCTBLE tag must follow an EBCASCTBL tag. The syntax for this tag is:
The EBCDICCP parameter specifies the EBCDIC code page for the print data in an *SCS or *AFPDS spooled file.
The ASCIICP parameter specifies the ASCII code page to use when mapping EBCDIC text to ASCII text.
The optional DATA parameter can be used to specify a custom EBCDIC to ASCII translation table to replace the default EBCDIC to ASCII translation tables provided by i5/OS.
Notes:
Information on the Code Page (CODEPAGE) Tag
The CODEPAGE (code page) tag defines the ASCII control sequence for selecting the ASCII code page. The CODEPAGE tag must follow the ASCII Code Page Information (ASCCPINFO) tag, another CODEPAGE tag, or an ASCII Control Code Mapping (ASCIICTL) tag. You can use more than one CODEPAGE tag, but these tags must come between the ASCCPINFO and End ASCII Code Page Information (EASCCPINFO) tags. The syntax for this tag is:
The CODEPAGE parameter specifies the identifier (ID) of the ASCII code page to be selected.
The DATA parameter specifies the ASCII control sequence for selecting the ASCII code page on the ASCII printer, which must be a hexadecimal value. The ASCII control sequence for selecting an ASCII code page is sent to the printer when that code page is requested in the printer data stream.
List of Known HP PCL Symbol Sets
The following is a list of known HP PCL Symbol Sets and the PCL codes to select each symbol set (in both ASCII and Hexadecimal):
Note: For a more complete list of PCL Symbol Sets, please refer to Table C-1 Symbol Set Values in the PCL 5 Comparison Guide, which is available at:
http://h10032.www1.hp.com/ctg/Manual/bpl13206.pdf
There used to be a helpful table of symbol sets at the "Printer Control Language (PCL & PXL) Support Blog," which has been offline for several years. An archived version of that site is available.
EBCASCTBLE and CODEPAGE tags Shipped with QSYS/QWPLEXMRKC *WSCST
The following table lists the EBCDIC-to-ASCII Table Entry (EBCASCTBLE) and Code Page (CODEPAGE) tags shipped with the system-supplied QSYS/QWPLEXMRKC *WSCST object.
This is one of the more recent system-suplied workstation customizing objects, and is the one that corresponds to Manufacturer type and model (MFRTYPMDL) values *INFOPRINT1500, *INFOPRINT1500C, *INFOPRINT1600, *INFOPRINT1600C, and *LEXMARKC.
Example EBCASCTBLE and CODEPAGE tags for printing Arabic
The following table lists the EBCDIC-to-ASCII Table Entry (EBCASCTBLE) and Code Page (CODEPAGE) tags for printing Arabic.
This requires that the printer hardware has built-in support for ASCII Code Page 864 Latin/Arabic) and that this code page can be selected in the printer hardware by requesting Symbol ID 10V by sending PCL Symbol Set command 'Ec(10V' or '1B28313056'X.
If the printer hardware has built-in support for ASCII Code Page 864 Latin/Arabic) and this code page can be selected in the printer hardware by requesting Symbol ID 8V by sending PCL Symbol Set command 'Ec(18V' or '1B283856'X.
Example EBCASCTBLE and CODEPAGE tags for printing Cyrillic
The following table lists the EBCDIC-to-ASCII Table Entry (EBCASCTBLE) and Code Page (CODEPAGE) tags for printing Cyrillic.
This requires that the printer hardware has built-in support for ASCII code page 866 (PC Data, Cyrillic, Russian) and that this code page can be selected in the printer hardware by requesting Symbol ID 3R by sending PCL Symbol Set command 'Ec(3R' or '1B283352'X.
Another sample: The following table lists the EBCDIC-to-ASCII Table Entry (EBCASCTBLE) and Code Page (CODEPAGE) tags for printing Cyrillic. Good alternative if printer only supports 1251 codepage.
This requires that the printer hardware has built-in support for ASCII code page 1251 and that this code page can be selected in the printer hardware by requesting Symbol ID 9R by sending Windows 98 Cyrillic set command 'Ec(9R' or '1B283952'X.
Example EBCASCTBLE and CODEPAGE tags for printing Greek
The following table lists the EBCDIC-to-ASCII Table Entry (EBCASCTBLE) and Code Page (CODEPAGE) tags for printing Cyrillic.
This requires that the printer hardware has built-in support for ASCII code page 1253 (Windows, Greek) and that this code page can be selected in the printer hardware by requesting Symbol ID 8G by sending PCL Symbol Set command 'Ec(8G' or '1B283847'X.
NOTE: When printing through an IBM i Access for Windows or IBM Access Client Solutions PC5250 printer session, the CHRID specified in the printer device description is used, not the CHRID specified in the spooled file.
| Caution: These instructions are provided as is. Any assistance with editing the Workstation Customization Table must be done through a consulting agreement. |
Basic Steps for Creating and Using a Workstation Customization Object
The following are the basic steps for creating and using a Workstation Customization Object (WSCST). Regardless of the particular issue(s) you are attempting to resolve, these steps must always be taken. This information is intended to provide a 'quick start' to creating a WSCST object for users who have at least some familiarity with creating them and with configuring printers.
Note: Information on creating a WSCST object can be found in the following document:
N1010140: Instructions for Modifying a Workstation Customizing Object (WSCST)
The following are the basic 'quick start' steps.
Step 1: Retrieve the WSCST source code. Type the following command on the operating system command line:
| Important Note: Use the Manufacturer type and model (MFRTYPMDL) that is appropriate for your printer. Also, the Source member (in the following example, HP4) is a name that is appropriate to your customizing object. This is what you will be calling your workstation customizing object in Step 3. |
RTVWSCST DEVTYPE(*TRANSFORM) MFRTYPMDL(*HP4) SRCMBR(HP4) SRCFILE(QGPL/QTXTSRC)
Press the Enter key.
Step 2: Edit the source code by using PDM or SEU:
| • | To use PDM, on the operating system command line type the following: WRKMBRPDM FILE(QGPL/QTXTSRC) MBR(HP4) Press the Enter key. Select Option 2 to edit. |
| • | To use SEU, on the operating system command line type the following: STRSEU SRCFILE(QGPL/QTXTSRC) SRCMBR(HP4) Press the Enter key. |
Step 3: Use the CRTWSCST command to create the WSCST object. On the operating system command line type the following:
| Important Note: Match the SRCMBR name from Step 1 to the WSCST object name that is created in this step. |
CRTWSCST WSCST(QGPL/HP4) SRCFILE(QGPL/QTXTSRC)
Press the Enter key.
Step 4: Add the WSCST to the printer configuration by using the Change Device Print command (CHGDEVPRT), the Change Output Queue command (CHGOUTQ), or by changing the PC5250 printer emulation session configuration.
| • | To add the WSCST to a device description, on the operating system command line type the following: CHGDEVPRT DEVD(device_name) TRANSFORM(*YES) MFRTYPMDL(*WSCST) WSCST(QGPL/HP4) Press the Enter key. |
| • | To add the WSCST to a remote output queue description, on the operating system command line type the following: CHGOUTQ OUTQ(queue_name) TRANSFORM(*YES) MFRTYPMDL(*WSCST) WSCST(HP4) Press the Enter key. |
| • | To add the WSCST to a PC5250 printer emulation session, do the following:
|
Note: If any changes are made to the WSCST object source code after the CRTWSCST command has been issued, it is necessary to issue the CRTWSCST command again. The printer writer must be ended and restarted for the changes to take effect.
Printing National Language Support (NLS) Characters using Host Print Transform (HPT)
There are two basic parts to setting up a modified Workstation Customizing Object (WSCST) to customize the EBCDIC-to-ASCI Code Page mapping to have Host Print Transform (HPT) print spooled files using specific National Language Support (NLS) characters:
| • | Customizing EBCDIC-to-ASCII Code Page mapping by setting up the EBCDIC-to-ASCII Mapping Table (EBCASCTBL), EBCDIC-to-ASCII Mapping Table Entry (EBCASCTBLE), and End EBCDIC-to-ASCII Mapping Table (EEBCASCTBL) tags. |
| • | Selecting the ASCII Symbol Set in the printer hardware by setting up the CODEPAGE (code page) tag to send a PCL Symbol Set command to the printer. |
Customizing EBCDIC-to-ASCII Code Page Mapping
EBCDIC-to-ASCII mapping tables convert an EBCDIC character specified in an application data stream into an ASCII character code value (for that same character). The EBCDIC-to-ASCII mapping table used for a given ASCII printer depends on the manufacturer, type, and model configured for the printer. Different types of ASCII printers support different ASCII code pages. The code page in use at any time is determined by a command to select the ASCII code page.
You can customize the EBCDIC-to-ASCII mapping that should be used for an ASCII printer. You can customize the mapping to replace the entire ASCII code page mapped to an EBCDIC code page. For example, the U.S. English EBCDIC code page 037 normally maps to the ASCII code page 437. You could use these tags to map EBCDIC code page 037 to an ASCII code page other than 437 (such as ASCII code page 850).
The following code page mapping tables are available on the AS/400 system for use by the Host Print Transform (HPT) function. The default mapping table is the mapping table used if you do not override the default table using a customizing object.
| EBCDIC Code Pages | Default and Alternate ASCII Code Pages |
|
| USA/Canada - CECP | 00037 | 00437 00850 00860 00863 01051 |
| Germany F.R./Austria | 00273 | 00850 00437 01051 |
| Denmark, Norway - CECP | 00277 | 00850 00865 01051 |
| Finland, Sweden - CECP | 00278 | 00850 00437 00865 01051 |
| Italy - CECP | 00280 | 00850 00437 01051 |
| Portugal - CECP | 00282 | 00850 00860 01051 |
| Spain/Latin America - CECP | 00284 | 00850 00437 01051 |
| United Kingdom - CECP | 00285 | 00850 00437 01051 |
| France - CECP | 00297 | 00850 00437 01051 |
| Arabic Bilingual | 00420 | 00864 01051 |
| Greece | 00423 | 00851 01051 |
| Israel (Hebrew) | 00424 | 00856 00862 01051 |
| International #5 | 00500 | 00850 00437 00860 00861 00865 01051 |
| Thai with Low Tone Marks & Ancient Characters | 00838 | 00874 01051 |
| Latin 2 - EBCDIC Multilingual | 00870 | 00852 01051 |
| Iceland - CECP | 00871 | 00850 00437 00861 01051 |
| Greece | 00875 | 00869 00423 01253 |
| Cyrillic, Multilingual | 00880 01025 | 00850 01154 00855 00866 00915 01131 |
| Latin 3 - EBCDIC | 00905 | 00857 |
| Latin #5 - Turkey | 01026 | 00857 |
Information on the EBCDIC-to-ASCII Table Entry (EBCASCTBLE) Tag
The EBCASCTBLE (EBCDIC-to-ASCII mapping table entry) tag is used to specify the EBCDIC-to-ASCII conversion table for mapping the EBCDIC code page for the print data in an IBM i spooled file to the ASCII code page used for a printer. The EBCASCTBLE tag must follow an EBCASCTBL tag. The syntax for this tag is:
:EBCASCTBLE
EBCDICCP = EBCDIC code page identifier (integer)
ASCIICP = ASCII code page identifier (integer)
DATA = EBCDIC to ASCII table data.The EBCDICCP parameter specifies the EBCDIC code page for the print data in an *SCS or *AFPDS spooled file.
The ASCIICP parameter specifies the ASCII code page to use when mapping EBCDIC text to ASCII text.
The optional DATA parameter can be used to specify a custom EBCDIC to ASCII translation table to replace the default EBCDIC to ASCII translation tables provided by i5/OS.
Notes:
| • | When you customize for an individual code point within an ASCII code page, you must indicate data values for every code point within the code page. You cannot only indicate the data value for the code point(s) you want customized. The data must be hexadecimal, and exactly 192 bytes. For example, EBCDIC code page 277 maps to ASCII code page 865 by default. You like this EBCDIC-to-ASCII code page mapping, except for the mapping of one character. To change the code page mapping for that character, you must indicate data values for every code point within the code page, not just for the code point you want changed. |
| • | The EBCDIC code page for an *SCS or *AFPDS spooled file can be specified in the spooled file attributes by using the Character identifier (CHRID) parameter in the Override with Printer File (OVRPRTF), Change Printer File (CRTPRTF) or Create Printer File (CRTPRTF) commands. If the CHRID parameter in the spooled file attributes is set to *SYSVAL, then the value specified in the QCHRID (Graphic character set and code page) system value will be used. If the CHRID parameter in the spooled file attributes is set to *DEVD, then the Character identifier (CHRID) parameter in the printer device description will be used. If the CHRID parameter in the spooled file attributes is set to *DEVD, but the printer device description specifies CHRID(*SYSVAL) or you are printing using a Remote Output Queue (RMTOUTQ), then the value specified in the QCHRID (Graphic character set and code page) system value will be used. |
Information on the Code Page (CODEPAGE) Tag
The CODEPAGE (code page) tag defines the ASCII control sequence for selecting the ASCII code page. The CODEPAGE tag must follow the ASCII Code Page Information (ASCCPINFO) tag, another CODEPAGE tag, or an ASCII Control Code Mapping (ASCIICTL) tag. You can use more than one CODEPAGE tag, but these tags must come between the ASCCPINFO and End ASCII Code Page Information (EASCCPINFO) tags. The syntax for this tag is:
:CODEPAGE
CODEPAGE = ASCII code page (integer)
DATA = ASCII control sequence.The CODEPAGE parameter specifies the identifier (ID) of the ASCII code page to be selected.
The DATA parameter specifies the ASCII control sequence for selecting the ASCII code page on the ASCII printer, which must be a hexadecimal value. The ASCII control sequence for selecting an ASCII code page is sent to the printer when that code page is requested in the printer data stream.
List of Known HP PCL Symbol Sets
The following is a list of known HP PCL Symbol Sets and the PCL codes to select each symbol set (in both ASCII and Hexadecimal):
PCL Symbol Set |
Symbol ID |
Code (ASCII) |
Code (Hex) |
Arabic (McKay’s Version) 0V |
0V |
Ec(0V |
'1B283056'X |
Code Page 857 Turkish-8 8T |
8T |
Ec(8T |
'1B283854'X |
Code Page 864 Latin/Arabic 10V 342 |
10V |
Ec(10V |
'1B28313056'X |
Code Page 864 Latin/Arabic |
8V |
Ec(8V |
'1B283856'X |
Code Page 869 Greek-8 |
8G |
Ec(8G |
'1B283847'X |
Code Page 874 TISI 620-2433 Thai 1T |
1T |
Ec(1T |
'1B283154'X |
Cyrillic ASCII (8859/5-1986) |
0R |
Ec(0R |
'1B283052'X |
Cyrillic (Code Page 855) |
1R |
Ec(1R |
'1B283152'X |
Devanagari 2D |
2D |
Ec(2D |
'1B283244'X |
Fraktur 12P |
12P |
Ec(12P |
'1B28313250'X |
Hebrew-7 0H |
0H |
Ec(0H |
'1B283048'X |
Hebrew-8 8H |
8H |
Ec(8H |
'1B283848'X |
HP European Spanish 7S |
7S |
Ec(7S |
'1B283753'X |
HP Latin Spanish 8S |
8S |
Ec(8S |
'1B283853'X |
ISO 2: International Reference |
2u |
Ec(2U |
'1B283255'X |
ISO 4: United Kingdom |
1e |
Ec(1E |
'1B283145'X |
ISO 6: US ASCII |
0u |
Ec(0U |
'1B283055'X |
ISO 10: Swedish |
3S |
Ec(3S |
'1B283353'X |
ISO 11: Latin/Thai |
0S |
Ec(0S |
'1B283053'X |
ISO 13: Baltic languages plus Polish |
1K |
Ec(1K |
'1B28314B'X |
ISO 14: JIS ASCII |
0k |
Ec(0K |
'1B28304B'X |
ISO 15: Italian |
0I |
Ec(0I |
'1B283049'X |
ISO 16: Portuguese |
4S |
Ec(4S |
'1B283453'X |
ISO 17: Spanish |
2S |
Ec(2S |
'1B283253'X |
ISO 21: German |
1G |
Ec(1G |
'1B283147'X |
ISO 25: French |
0F |
Ec(0F |
'1B283046'X |
ISO 57: Chinese |
2K |
Ec(2K |
'1B28324B'X |
ISO 60: Danish/Norwegian |
0D |
Ec(0D |
'1B283044'X |
ISO 61: Norwegian Version 2 |
1D |
Ec(1D |
'1B283144'X |
ISO 69: French |
1F |
Ec(1F |
'1B283146'X |
ISO 84: Portuguese |
5S |
Ec(5S |
'1B283553'X |
ISO 85: Spanish |
6S |
Ec(6S |
'1B283653'X |
ISO 8859/1 Latin 1 (EC94) |
0N |
Ec(0N |
'1B28304E'X |
ISO 8859/15 Latin 9 |
9N |
Ec(9N |
'1B28394E'X |
ISO 8859/2 Latin 2 |
2N |
Ec(2N |
'1B28324E'X |
ISO 8859/3 Latin 3 |
3N |
Ec(3N |
'1B28334E'X |
ISO 8859/4 Latin 4 (Baltic) |
4N |
Ec(4N |
'1B28344E'X |
ISO 8859/5 Latin/Cyrillic |
10N |
Ec(10N |
'1B2831304E'X |
ISO 8859/5-1986 Cyrillic |
0R |
Ec(0R |
'1B283052'X |
ISO 8859/6 Latin/Arabic |
11N |
Ec(11N |
'1B2831314E'X |
ISO 8859/7 Latin/Greek |
12N |
Ec(12N |
'1B2831324E'X |
ISO 8859/8 Latin/Hebrew |
7H |
Ec(7H |
'1B283748'X |
ISO 8859/9 Latin 5 |
5N |
Ec(5N |
'1B28354E'X |
ISO 8859/10 Latin 6 |
6N |
Ec(6N |
'1B28364E'X |
ISO German |
0G |
Ec(0G |
'1B283047'X |
ISO Spanish |
1S |
Ec(1S |
'1B283153'X |
KANA-8 (JIS 210) |
8K |
Ec(8K |
'1B28384B'X |
Korean-8 |
9K |
Ec(9K |
'1B28394B'X |
MICR (CMC-7) |
14Y |
Ec(14Y |
'1B28313459'X |
MICR (E13B) |
10O |
Ec(10O |
'1B2831304F'X |
OCR-A 0O |
0O |
Ec(0O |
'1B28304F'X |
OCR-B 1O |
1O |
Ec(1O |
'1B28314F'X |
PC-8 (Code Page 437) |
10U |
Ec(10U |
'1B28313055'X |
PC-8 Bulgarian |
13R |
Ec(13R |
'1B28313352'X |
PC-8 Greek Alternate (437G) |
14G |
Ec(14G |
'1B28313447'X |
PC-8 Latin/Greek |
12G |
Ec(12G |
'1B28313247'X |
PC-8 D/N, Code Page 437N |
11U |
Ec(11U |
'1B28313155'X |
PC-8 PC Nova |
27Q |
Ec(27Q |
'1B28323751'X |
PC-8 Polish Mazovia |
24Q |
Ec(24Q |
'1B28323451'X |
PC-8 TK, Code Page 437T |
9T |
Ec(9T |
'1B283954'X |
PC-775 Baltic Rim codepage |
26U |
Ec(26U |
'1B28323655'X |
PC-850 Multilingual Latin 1 |
12U |
Ec(12U |
'1B28313255'X |
PC-851 Latin/Greek |
10G |
Ec(10G |
'1B28313047'X |
PC-852 Latin 2 |
17U |
Ec(17U |
'1B28313755'X |
PC-853 Latin 3 Turkish |
18U |
Ec(18U |
'1B28313855'X |
PC-855 Cyrillic |
10R |
Ec(10R |
'1B28313052'X |
PC-857 Latin 5 Turkish |
16U |
Ec(16U |
'1B28313655'X |
PC-857 Turkish |
8T |
Ec(8T |
'1B283854'X |
PC-858 Multilingual Euro |
13U |
Ec(13U |
'1B28313355'X |
PC-860 Portugal |
20U |
Ec(20U |
'1B28323055'X |
PC-861 Iceland |
21U |
Ec(21U |
'1B28323155'X |
PC-862 Latin/Hebrew |
15H |
Ec(15H |
'1B28313548'X |
PC-863 Canada-French |
23U |
Ec(23U |
'1B28323355'X |
PC-865 Norway |
25U |
Ec(25U |
'1B28323555'X |
PC-866 Cyrillic/Russian |
3R |
Ec(3R |
'1B283352'X |
PC-869 Greek |
11G |
Ec(11G |
'1B28313147'X |
PC-911 Katakana |
3K |
Ec(3K |
'1B28334B'X |
PC-1004 |
9J |
Ec(9J |
'1B28394A'X |
Roman Extension 0E |
0E |
Ec(0E |
'1B283045'X |
Roman-8 |
8U |
Ec(8U |
'1B283855'X |
Roman-9 |
4U |
Ec(4U |
'1B283455'X |
Russian-GOST 12R |
12R |
Ec(12R |
'1B28313252'X |
Thai-8 |
0T |
Ec(0T |
'1B283054'X |
TISI 620-2533 (Thai) |
1T |
Ec(1T |
'1B283154'X |
Ukrainian 14R |
14R |
Ec(14R |
'1B28313452'X |
UTF-8 (Unicode) 18N |
18N |
Ec(18N |
'1B2831384E'X |
Windows-874 superset of TISI 620-2533 (Thai) |
1T |
Ec(1T |
'1B283154'X |
Windows 3.0 Latin 1 |
9U |
Ec(9Y |
'1B283955'X |
Windows 3.1 Latin 1 (ANSI) |
19U |
Ec(19U |
'1B28313955'X |
Windows 3.1 Latin 2 |
9E |
Ec(9E |
'1B283945'X |
Windows 3.1 Latin 5 |
5T |
Ec(5T |
'1B283554'X |
Windows 98 Cyrillic |
9R |
Ec(9R |
'1B283952'X |
Windows 98 Latin 6 Baltic |
19L |
Ec(19L |
'1B2831394C'X |
Windows 98 Latin/Greek |
9G |
Ec(9G |
'1B283947'X |
Windows Latin/Arabic |
9V |
Ec(9V |
'1B283956'X |
Note: For a more complete list of PCL Symbol Sets, please refer to Table C-1 Symbol Set Values in the PCL 5 Comparison Guide, which is available at:
http://h10032.www1.hp.com/ctg/Manual/bpl13206.pdf
There used to be a helpful table of symbol sets at the "Printer Control Language (PCL & PXL) Support Blog," which has been offline for several years. An archived version of that site is available.
EBCASCTBLE and CODEPAGE tags Shipped with QSYS/QWPLEXMRKC *WSCST
The following table lists the EBCDIC-to-ASCII Table Entry (EBCASCTBLE) and Code Page (CODEPAGE) tags shipped with the system-supplied QSYS/QWPLEXMRKC *WSCST object.
This is one of the more recent system-suplied workstation customizing objects, and is the one that corresponds to Manufacturer type and model (MFRTYPMDL) values *INFOPRINT1500, *INFOPRINT1500C, *INFOPRINT1600, *INFOPRINT1600C, and *LEXMARKC.
:EBCASCTBL.
:EBCASCTBLE
EBCDICCP= 37
ASCIICP= 850
DATA =''X.
:EBCASCTBLE
EBCDICCP= 875
ASCIICP= 1253
DATA =''X.
:EEBCASCTBL.
:ASCCPINFO.
:CODEPAGE
CODEPAGE= 437
DATA ='1B28313055'X.
:CODEPAGE
CODEPAGE= 850
DATA ='1B28313255'X.
:CODEPAGE
CODEPAGE= 852
DATA ='1B28313755'X.
:CODEPAGE
CODEPAGE= 858
DATA ='1B28313355'X.
:CODEPAGE
CODEPAGE= 1250
DATA ='1B283945'X.
:CODEPAGE
CODEPAGE= 1251
DATA ='1B283952'X.
:CODEPAGE
CODEPAGE= 1252
DATA ='1B28313955'X.
:CODEPAGE
CODEPAGE= 1253
DATA ='1B283947'X.
:CODEPAGE
CODEPAGE= 1254
DATA ='1B283554'X.
:CODEPAGE
CODEPAGE= 1257
DATA ='1B2831394C'X.
:EASCCPINFO.Example EBCASCTBLE and CODEPAGE tags for printing Arabic
The following table lists the EBCDIC-to-ASCII Table Entry (EBCASCTBLE) and Code Page (CODEPAGE) tags for printing Arabic.
This requires that the printer hardware has built-in support for ASCII Code Page 864 Latin/Arabic) and that this code page can be selected in the printer hardware by requesting Symbol ID 10V by sending PCL Symbol Set command 'Ec(10V' or '1B28313056'X.
:EBCASCTBL.
...
:EBCASCTBLE
EBCDICCP= 420 /* Convert EBCDIC 420 (Bilingual Arabic) */
ASCIICP= 864 /* to ASCII 864 (Arabic - PC) */
DATA =''X.
:EEBCASCTBL.
:ASCCPINFO.
...
:CODEPAGE /* Send PCL Symbol Set <Esc>(10V */
CODEPAGE= 864 /* to select ASCII code page 864 */
DATA ='1B28313056'X. /* (Arabic - Personal Computer) */
:EASCCPINFO.If the printer hardware has built-in support for ASCII Code Page 864 Latin/Arabic) and this code page can be selected in the printer hardware by requesting Symbol ID 8V by sending PCL Symbol Set command 'Ec(18V' or '1B283856'X.
:EBCASCTBL.
...
:EBCASCTBLE
EBCDICCP= 420 /* Convert EBCDIC 420 (Bilingual Arabic) */
ASCIICP= 864 /* to ASCII 864 (Arabic - PC) */
DATA =''X.
:EEBCASCTBL.
:ASCCPINFO.
...
:CODEPAGE /* Send PCL Symbol Set <Esc>(8V */
CODEPAGE= 864 /* to select ASCII code page 864 */
DATA ='1B283856'X. /* (Arabic - Personal Computer) */
:EASCCPINFO.Example EBCASCTBLE and CODEPAGE tags for printing Cyrillic
The following table lists the EBCDIC-to-ASCII Table Entry (EBCASCTBLE) and Code Page (CODEPAGE) tags for printing Cyrillic.
This requires that the printer hardware has built-in support for ASCII code page 866 (PC Data, Cyrillic, Russian) and that this code page can be selected in the printer hardware by requesting Symbol ID 3R by sending PCL Symbol Set command 'Ec(3R' or '1B283352'X.
:EBCASCTBL.
...
:EBCASCTBLE /* Translate from EBCDIC code page 1025 */
EBCDICCP= 1025 /* (Cyrillic, Multilingual) to ASCII code */
ASCIICP= 866 /* page 866 (PC Data, Cyrillic, Russian) */
DATA =''X.
:EEBCASCTBL.
:ASCCPINFO.
...
:CODEPAGE /* PCL Symbol Set command for ASCII code */
CODEPAGE= 866 /* page 866 (PC Data, Cyrillic, Russian) */
DATA ='1B283352'X. /* '1B283352'X or 'Ec(3R' */
:EASCCPINFO.Another sample: The following table lists the EBCDIC-to-ASCII Table Entry (EBCASCTBLE) and Code Page (CODEPAGE) tags for printing Cyrillic. Good alternative if printer only supports 1251 codepage.
This requires that the printer hardware has built-in support for ASCII code page 1251 and that this code page can be selected in the printer hardware by requesting Symbol ID 9R by sending Windows 98 Cyrillic set command 'Ec(9R' or '1B283952'X.
:EBCASCTBLE
EBCDICCP= 1025
ASCIICP= 1251
DATA =
'20A09083B8BABEB3BFBC5B2E3C282B21269A9C9E9DA29FDAB9805D242A293B5E'X
'2D2F81A8AABDB2AFA38A7C2C255F3E3F8C8E8DADA18FFEE0E1603A2340273D22'X
'F6616263646566676869E4E5F4E3F5E8E96A6B6C6D6E6F707172EAEBECEDEEEF'X
'FF7E737475767778797AF0F1F2F3E6E2FCFBE7F8FDF9F7FADEC0C1D6C4C5D4C3'X
'7B414243444546474849D5C8C9CACBCC7D4A4B4C4D4E4F505152CDCECFDFD0D1'X
'5CA7535455565758595AD2D3C6C2DCDB30313233343536373839C7D8DDD9D7BB'X.
:CODEPAGE
CODEPAGE= 1251
DATA ='1B283952'X.
Example EBCASCTBLE and CODEPAGE tags for printing Greek
The following table lists the EBCDIC-to-ASCII Table Entry (EBCASCTBLE) and Code Page (CODEPAGE) tags for printing Cyrillic.
This requires that the printer hardware has built-in support for ASCII code page 1253 (Windows, Greek) and that this code page can be selected in the printer hardware by requesting Symbol ID 8G by sending PCL Symbol Set command 'Ec(8G' or '1B283847'X.
:EBCASCTBL.
...
:EBCASCTBLE /* Translate from EBCDIC code page 875 */
EBCDICCP= 875 /* (Greece) to ASCII code page 1253 */
ASCIICP= 1253 /* (Windows, Greek) */
DATA =''X.
:EEBCASCTBL.
:ASCCPINFO.
...
:CODEPAGE /* PCL Symbol Set command for ASCII code */
CODEPAGE= 1253 /* page 1253 (Windows, Greek) */
DATA ='1B283947'X. /* '1B283947'X or 'Ec(9G' */
:EASCCPINFO.
[{"Type":"MASTER","Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"Platform":[{"code":"PF012","label":"IBM i"}],"Version":"7.1.0"}]
Historical Number
461168368
Was this topic helpful?
Document Information
Modified date:
23 February 2022
UID
nas8N1018850