Installation guide

4-11
Bull S.A. May 25th, 1999
9.4.4 UTF–8: Example of a conversion program
In the following example the Euro character is coded hex e282ac.
export LANG=fr_FR.IBM–1252
keeps the F character for the value to convert.
The Euro character is given by the filler value hex e282ac.
$set NLS
$set XOPEN
environment division.
special–names.
environment–name is envname
environment–value is envvalue.
data division.
working–storage section.
01 francs–value pic 9(10)v99.
01 euro–value pic 9(10)v99.
01 edited–francs–value pic $(9)9.99.
01 edited–euro–value.
02 edited–euro–value–1 pic z(9)9.99.
02 filler pic x(3) value x”e282ac”.
01 change–rate pic 9V9(5) value 6.55957.
procedure division.
move 10000.00 to francs–value.
divide change–rate into francs–value
giving euro–value rounded.
move francs–value to edited–francs–value.
move euro–value to edited–euro–value–1.
display edited–francs–value ” = ”
edited–euro–value.
stop run.
10. Summary
Hardware or applications products support for Euro codes
Product
ISO 8859–15
(hex code a4)
IBM–1252
(hex code 80)
UTF–8
(hex code e282ac)
Comment
BQ306 Yes: standard Yes: use filters Yes: use filters use setmaps to set
filters
X terminals No: not ready Yes: standard Yes: standard use xmodmap to
configure keyboard
Printers Yes: standard Yes: standard No: not ready
Applications
locale
No: not ready Yes.
ca_ES.IBM–1252
de_DE.IBM–1252
en_GB.IBM–1252
es_ES.IBM–1252
fi_FI.IBM–1252
fr_BE.IBM–1252
fr_FR.IBM–1252
it_IT.IBM–1252
nl_BE.IBM–1252
nl_NL.IBM–1252
pt_PT.IBM–1252
Yes.
CA_ES
DE_DE
ES_ES
FI_FI
FR_BE
FR_FR
IT_IT
NL_BE
NL_NL
PT_PT
Catalan
German
English
Spanish
Finish
Belgian French
French
Italian
Belgian Dutch
Netherlands Dutch
Portugese