Progress
Internationalization Guide
Code-page Conversion Tables
A code-page conversion table tells Progress how to convert a character on one code page to the equivalent character on another code page. Progress uses a code-page conversion table when:
- You convert a database and its data to a different code page. For more information on converting a database to a different code page, see Using Databases."
- Progress automatically converts data from one code page to another during execution. For more information on automatic code-page conversion, see Understanding Code Pages."
Figure 3–4 shows a code-page conversion table for converting from code page 1256 to code page 709. Code pages 1256 and 709 are used in locales that use the Arabic language. This table resides in the file
arabic.dat
.
Figure 3–4: Table For Converting From Code Page 1254 To Code Page 709
A code-page conversion table contains a value for every element in the code page. Values appear in rows of sixteen. Each value represents the corresponding element in the target code page. For example, as Figure 3–4 shows, element 240 in code page 1256 corresponds to element 235 in code page 709.
Converting To and From UTF–8
If you add a new code-page conversion table that converts to UTF–8 (an encoding of Unicode), you must set the correct value for TYPE. As shown in Figure 3–4, this number appears at the top of the code-page conversion table, to the right of the literal TYPE, in the double quotes.
The value you supply for TYPE depends on whether the non-UTF-8 code page is single byte
or double byte, as Table 3–2 shows.
Table 3–2: Converting to UTF–8 Conversion Value for TYPE From a single-byte code page to UTF–8 19 From a double-byte code page to UTF–8 17
For example, to convert from ISO8859–1, a single-byte code page, to UTF–8, set TYPE to 19.
When you compile code-page conversion tables for converting to UTF–8, Progress automatically computes the inverse conversions and assigns the correct value for TYPE, as shown in Table 3–3.
Table 3–3: Converting From UTF–8 Conversion Value for TYPE From UTF–8 to a single-byte code page 20 From UTF–8 to a double-byte code page 18
For more information on multi-byte code pages, see "Using Multi-byte Code Pages," and Using Unicode."
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |