If your document does not include an encoding declaration in the XML declaration, or does not have an XML declaration at all, the parser uses the encoding information provided by the PLISAX built-in call in conjunction with the basic encoding of the document.
You can also specify the encoding information for the document in the XML declaration, with which most XML documents begin. An example of an XML declaration that includes an encoding declaration is:
<xml version="1.0" encoding="ibm-1140">
If your XML document includes an encoding declaration, ensure that it is consistent with the encoding information provided by the PLISAX built-in and with the basic encoding of the document. If there is any conflict between the encoding declaration, the encoding information provided by the PLISAX built-ins and the basic encoding of the document, the parser signals an exception XML event.
Specify the encoding declaration as follows:
You can specify the CCSID number (with or without any number of leading zeroes), prefixed by any of the following (in any mixture of upper or lower case):