ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzalu_5.4.0.1/rzaluacscp.htm

106 lines
6.6 KiB
HTML

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="dc.language" scheme="rfc1766" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<meta name="dc.date" scheme="iso8601" content="2005-09-06" />
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow"/>
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<title>Alternative character sets and code pages for printer output considerations</title>
<link rel="stylesheet" type="text/css" href="ibmidwb.css" />
<link rel="stylesheet" type="text/css" href="ic.css" />
</head>
<body>
<a id="Top_Of_Page" name="Top_Of_Page"></a><!-- Java sync-link -->
<script language = "Javascript" src = "../rzahg/synch.js" type="text/javascript"></script>
<a name="rzaluacscp"></a>
<h4 id="rzaluacscp">Alternative character sets and code pages for printer output considerations</h4>
<p>Character sets are used with code pages to determine how each character
will appear in the printed output. Code pages consist of hexadecimal identifiers
(code points) assigned to character identifiers. For example, in code page
037 (EBCDIC), the letter e is assigned a code point of hex 85.</p>
<p>In multinational environments, data in one national graphics character
set might need to be printed on devices that support another national character
set. This is particularly true of characters with accents and other characters
with diacritical marks (such as &ccedil;, &ntilde;, and &uuml;). In this section, these
characters are called <span class="bold">extended alphabetics</span>.</p>
<p>For example, assume that a physical file on the system contains data in
the Basic French character set, and includes the character &eacute;. In the code
page used with the Basic French character set, this character is hex C0. The
data could have been entered on a display device that can handle the character
or could have been sent to the system from another system over a communications
line. When hex C0 is sent to a printer that is set up for the United States
Basic character set, the hex C0 is printed as {. Depending on the
printer and the hexadecimal value sent, the hexadecimal value could be an
unprintable character. The way the printer handles a specific hex code point
(for example, hex C0) depends on the current value of the CHRID parameter
in the printer file. You can specify the following parameter values for the
CHRID parameter: </p>
<ul>
<li>With an explicit value specified for the CHRID parameter, the printer
interprets the data as if the data were in the character set and code page
specified.</li>
<li>With CHRID(*SYSVAL) specified, the printer file takes the value specified
in the Graphic character set/Code page (QCHRID) system value when the output
is created.</li>
<li>With CHRID(*DEVD) specified, the printer uses the CHRID that was set with
the device control panel or that was specified when the printer device description
was created.</li>
<li>If you have specified CHRID(*JOBCCSID), the printer interprets the data
as if it were in the character set and code page that are associated with
the CCSID for the current job. For more information, see the <a href="../nls/rbagsglobalmain.htm">Globalization</a> topic.</li>
<li>With CHRID(*CHRIDCTL) specified, the printer file checks the CHRIDCTL
job definition attribute to determine whether to use *JOBCCSID or *DEVD on
the CHRID command parameter for the job.</li></ul>
<p>Not all printers can handle all CHRID parameter values. If a CHRID is
specified for a printer on which that CHRID is not supported, a message is
sent to the operator. See <a href="rzalurefchrid.htm#rzalurefchrid">CHRID values supported</a> for a description of
which printers support which extensions.</p>
<p>For program-described printer files, the value of the CHRID parameter determines
the code page and character set used to print the data. However, for externally
described printer files, the CHRID parameter is used only for fields that
also have the CHRID DDS keyword specified. Fields that do not have the CHRID
DDS keyword use the code page and character as if CHRID(*DEVD) had been specified
for the CHRID parameter on the printer file.</p>
<p>For printers with AFP(*YES) in the device description, the printer file
CDEPAG and FNTCHRSET parameters can be used to select a code page when the
printer file DEVTYPE parameter is *AFPDS. This applies to all IPDS&trade; printers except
4224, 4230, 4234, 4247, and 64xx.</p>
<p>The following figure shows how extended alphabetics are handled in printer
output:</p>
<a name="wq143"></a>
<div class="fignone" id="wq143">
<div class="mmobj">
<img src="rs3h020.gif" alt="How extended alphabetics are handled in printer output" /></div></div>
<p>Assume that a record in a physical file contains a field with the value <tt class="xph">Ren&eacute;e</tt>. An application program reads the record from the physical
file, and writes a record containing the data to the spooled file. The output
field in the printer file that describes how <tt class="xph">Ren&eacute;e</tt> is to be
printed has the CHRID DDS keyword specified, indicating that the printer is
to interpret extended alphabetics. The graphic character set 288 and code
page 297 are specified for the interpretation in either the printer file or
the Graphic character set/Code page (QCHRID) system value. Code page 297
is used for French language.</p>
<p>When printing the data, the printer interprets hex C0 as specified in character
set 288 and code page 297. If character set 101 and code page 037 had been
selected, hex C0 (&eacute;) would have been printed as {.</p>
<p>One of the following CHRID values (graphic character set and code page)
must be specified to print fonts OCR-A and OCR-B on the IPDS printers: </p>
<ul class="simple">
<li>580 340</li>
<li>590 340</li>
<li>697 892</li>
<li>697 893</li></ul>
<a id="Bot_Of_Page" name="Bot_Of_Page"></a>
</body>
</html>