www.krengeltech.com

RXS_setParseEnc

From Wiki

User Guide

Contents

Description

Call this subprocedure before RXS_parse to tell the parser what encoding to use while parsing the character data in elements and attributes. By default the parser will look at the first few characters of the file to attempt to determine what encoding should be used. By default, and more often than not, UTF-8 is used. That can cause problems if the data was actually obtained using CCSID 819 (i.e. encoding ISO88591). If you are having trouble parsing characters like Ü then your data is probably being returned as ISO88591 vs. UTF-8 (as many XML declarations incorrectly state).

Prototype

     D RXS_setParseEnc...
     D                 pr
     D  pPrsEnc                      25a   const

Parameters

pPrsEnc
Specify the parse encoding that the parser should use. Valid values are RXS_UTF8, RXS_UTF16, RXS_ISO88591, RXS_USASCII. All of these constants can be found in copy book RXSCP.

Return value

None.

Notes / Examples

An excellent reference for code pages can be found here.