Documents encoding

An Infor standard is that all XML documents use the UTF-8 encoding. Therefore, there is no need to set this key. The default is UTF-8.

All readers and writers to the database tables that are used by the Infor Application Connector must use the exact same encoding mechanisms. When writing a message to the COR_OUTBOX_ENTRY table, serialize your XML string to the C_XML column as a UTF-8 byte stream. Similarly, when reading the COR_INBOX_ENTRY table. You extract your XML string from the C_XML column by converting the bytes as a UTF-8 byte stream.

If you do not use the UTF-8 decoding when reading the XML from the table, and the XML contains characters that require two bytes, the XML can be invalid. Also the formatting is affected. A worst case scenario is that you cannot parse the XML document.