Code page location search order

KCM Core searches for code page translation tables in the following order:

  1. Using a custom code page mapping file
  2. Using the code page translation tables provided by Microsoft Windows
  3. Using built-in code page tables

If KCM Core is unable to locate the appropriate code page translation tables, the conversion fails.

The following code pages are built in KCM Core.

Code page Belongs to Code page Belongs to
273 Germany EBCDIC 912 Latin 2 ISO 8859-2
277 Denmark/Norway EBCDIC 915 Cyrilic ISO 8859-5
278 Finland/Sweden EBCDIC 921 Baltic ISO
280 Italian EBCDIC 922 Estonia
284 Spanish EBCDIC 930 Japan EBCDIC
285 UK EBCDIC 942 Japan SAA (1041+301)
290 Japanese EBCDIC 943 Japan JIS-90 (1041+941)
297 French EBCDIC 1004 Windows
420 Arabic Bilingual 1025 Cyrilic EBCDIC
424 Israel EBCDIC 1026 Turkey ISO 8859-9
437 US 1027 Japanese Latin EBCDIC
500 International EBCDIC 1112 Baltic EBCDIC
813 Greece ISO 8859-7 1122 Estonia EBCDIC
819 Latin 1 ISO 8859-1 1140 Portugal/US EBCDIC with Euro
850 Multilingual 1141 Germany EBCDIC with Euro
852 Latin 2 1142 Denmark/Norway EBCDIC with Euro
855 Cyrilic 1143 Finland/Sweden EBCDIC with Euro
857 Latin 5 1144 Italian EBCDIC with Euro
860 Portugal 1145 Spanish EBCDIC with Euro
861 Iceland 1146 UK EBCDIC with Euro
862 Israel 1147 French EBCDIC with Euro
863 Canada (French) 1148 International EBCDIC with Euro
864 Arabic 1149 Iceland with Euro
865 North European 1250 Latin 2 Windows
866/878 Russia/Russian Internet 1251 Cyrilic Windows
869 Greece 1252 Latin 1 Windows
870 Latin 2 EBCDIC 1254 Turkey Windows
871 Iceland 1257 Baltic Windows
874 Thailand 1275 Apple Latin 1
897 Japan

The parameter SubstituteChar provides a default character used if a character from the Src file could not be mapped to Dest. If the parameter SubstituteChar contains more than one character, only the first character is used.

If the parameter SubstituteChar is not present or if it contains an empty string, the value of the parameter SubstituteCode is used as the numeric representation of the replacement character.

The parameter SubstituteChar is ignored if built-in translation tables are used for the conversion. In this case a space is used as the substitution character.

If the parameter To maps to the code page "unicode" or "unicode-big-endian," you can also use the parameter SubstituteCode to specify Unicode characters as replacement. If the parameter To maps to a single-byte code page, only the lowest byte of the parameter SubstituteCode is used.

Examples are provided in the table.

Value

Description

Example

ddd

Any character code ddd in decimal format.

"8364" maps to the euro symbol € in the Unicode codepages.

0xhhh

Any character code hhh in hexadecimal format.

"0x20ac" maps to the euro symbol € in the Unicode codepages.

A SubstituteCode value of 0 is ignored.

If neither SubstituteChar nor SubstituteCode provide a valid replacement character, the command ConvertCodepage reports an error if the conversion encountered an character that could not be mapped.