Preserving the encoding of XML files

To preserve the encoding of XML files that were created on an ASCII platform, transfer the files (including files such as the Resource Registry .mrc and .mrn files) in BINARY mode (for example, by using FTP or IND$FILE). Note that ASCII files that are transferred in BINARY mode are still ASCII-encoded, and therefore are not readable on the mainframe platform.

An XML instance document might contain an encoding attribute that identifies the code page of its content. If you transfer an XML file to your mainframe in ASCII mode or convert it to EBCDIC, you must manually change the encoding setting in the resulting XML instance document to the correct code page in order to ensure that the XML parser correctly processes the file. In most cases, change UTF-8 encoding to IBM-1047 encoding.