Troubleshooting
Problem
CPYTOIMPF does not add BOM codes to a UTF-8 streamfile to clearly identify it as a UTF-8 file on other platforms. This document includes information on how to add them.
Resolving The Problem
CPYTOIMPF does not add BOM codes to a UTF-8 streamfile to clearly identify it as a UTF-8 file on other platforms. This document includes information on how to add them.
CPYTOIMPF was used to create an export streamfile in UTF-8 (CCSID 1208) format. When the file contained special characters such as umlauts, the receiving application correctly identified the UTF-8 encoding. However, with only plain Latin characters, the target application assumed ANSI encoding and refused the import. BOM characters (see Byte Order Mark (BOM) FAQ) were missing to uniquely identify the field contents.
The following are valid BOM characters:
You should do the following to correct this issue:
CPYTOIMPF was used to create an export streamfile in UTF-8 (CCSID 1208) format. When the file contained special characters such as umlauts, the receiving application correctly identified the UTF-8 encoding. However, with only plain Latin characters, the target application assumed ANSI encoding and refused the import. BOM characters (see Byte Order Mark (BOM) FAQ) were missing to uniquely identify the field contents.
The following are valid BOM characters:
BOMS | Hex values |
UTF-32 BE (020) | 00 00 FE FF |
UTF-32 LE (030) | FF FE 00 00 |
UTF-16 BE (040) | FE FF |
UTF-16 LE (050) | FF FE |
UTF-8 (060) | EF BB BF |
You should do the following to correct this issue:
[{"Type":"MASTER","Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"Platform":[{"code":"PF012","label":"IBM i"}],"Version":"7.1.0"}]
Historical Number
629017082
Was this topic helpful?
Document Information
Modified date:
19 September 2022
UID
nas8N1011066