Handle codepage conversions
- Last Updated: June 7, 2019
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
The SAX-writer object outputs the XML document in the
codepage specified by the ENCODING attribute (UTF-8 by
default). However, the character input to the document might use
several codepages, as described:
- A
CHARACTERvariable uses the codepage set by the ABL parameter-cpinternal - A
LONGCHARvariable uses the codepage individually set for it
The SAX-writer handles these issues automatically by converting
all character data to the UTF-16 codepage during
processing before converting the XML output to the correct specified
codepage.