Rational Developer for System z
COBOL for Windows, Version 7.5, Programming Guide


Controlling the encoding of generated XML output

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.

Table 49. Encoding of generated 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
  1. A byte order mark is not generated.
  2. You can set the code page by using the EBCDIC_CODEPAGE environment variable. If the environment variable is not set, the encoding is in the default EBCDIC code page associated with the current locale.

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)


Terms of use | Feedback

Copyright IBM Corporation 1996, 2008.
This information center is powered by Eclipse technology. (http://www.eclipse.org)