24.05.2014 Views

AIX Version 4.3 Differences Guide

AIX Version 4.3 Differences Guide

AIX Version 4.3 Differences Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Existing EBCDIC Code Set New Euro Code Set Countries<br />

IBM-277 IBM-1142 Denmark, Norway<br />

IBM-278 IBM-1143 Finland, Sweden<br />

IBM-280 IBM-1144 Italy<br />

IBM-284 IBM-1145 Spain<br />

IBM-285 IBM-1146 Great Britain<br />

IBM-297 IBM-1147 France<br />

IBM-500 IBM-1148 Belgium, Canada, Switzerland<br />

IBM-871 IBM-1149 Iceland<br />

The new iconv converters use either the UCSTBL or the Universal_UCS_Conv<br />

conversion method.<br />

The UCSTBL method is located in the /usr/lib/nls/loc/uconv directory and loads<br />

UCS-2 (Unicode) conversion tables created by the uconvdef command. In order to<br />

compile the UCS-2 (Unicode) conversion table, the uconvdef command reads a<br />

source file that defines a mapping between the UCS-2 and a particular multi-byte<br />

code set. The source files are in the /usr/lib/nls/uconv table directory with names<br />

that are composed of the code set name appended by the suffix .ucmap. The<br />

UCSTBL method uses the table to support UCS-2 conversions in both directions.<br />

The setup of a converter is complete if the proper symbolic links for conversions<br />

in each direction are created in the /usr/lib/nls/iconv directory. For example, the<br />

links for the conversion of the IBM-850 code set to UCS-2, and vice versa, are<br />

defined as shown below:<br />

# cd /usr/lib/nls/loc/iconv<br />

# ln -s /usr/lib/nls/loc/uconv/UCSTBL IBM-850_UCS-2<br />

# ln -s /usr/lib/nls/loc/uconv/UCSTBL UCS-2_IBM-850<br />

The Universal_UCS_Conv method is located in the /usr/lib/nls/loc/iconv directory<br />

and can be used to convert between any two code sets whose conversions to,<br />

and from, UCS-2 are defined. The conversion is instantiated by setting the proper<br />

links. Assuming that someone wants to define the conversion of the IBM-850 to,<br />

and from, the UTF-8 code set, you would have to enter the following sequence of<br />

commands:<br />

# cd /usr/lib/nls/loc/iconv<br />

# ln -s /usr/lib/nls/loc/uconv/Universal_UCS_Conv IBM-850_UTF-8<br />

# ln -s /usr/lib/nls/loc/uconv/UCSTBL IBM-850_UCS-2<br />

# ln-s /usr/lib/nls/loc/uconv/UCSTBL UCS-2_UTF-8<br />

# ln -s /usr/lib/nls/loc/uconv/UCSTBL IBM-850<br />

# ln -s /usr/lib/nls/loc/uconv/UCSTBL UTF-8<br />

As you can see from the example above, UTF-8 converters are usually done by<br />

using the Universal_UCS_Conv and the /usr/lib/nls/loc/uconv/UTF-8 conversion.<br />

It should be noted that, for some conversion pairs, a substitution character may<br />

be inserted when converting a Euro symbol from a codeset that contains the Euro<br />

to a codeset that does not (For example: Converting IBM-114x to ISO8859-1).<br />

National Language Support 267

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!