When you generate XML output by using the XML GENERATE statement, you can control the encoding of the output by the category of the data item that receives the XML output.
| If you define the receiving XML identifier as: | The generated XML output is encoded in: |
|---|---|
| Native alphanumeric | The code page indicated by the locale in effect |
| Host alphanumeric | The EBCDIC code page in effect2 |
| National | UTF-16 little-endian (UTF-16LE, CCSID 1202)1 |
|
|
For details about how data items are converted to XML and how the XML element names are formed from the COBOL data-names, see the related reference below about the operation of the XML GENERATE statement.
related tasks
Setting the locale
Setting environment variables
related references
CHAR
Operation of XML GENERATE
(COBOL for Windows Language Reference)