|
QDCXLATE will not handle the generation of UTF8, but you could use either iconv() or the CDRCVRT/QTQCVRT APIs. The CCSID for UTF8 is 1208; the CCSID for your EBCDIC data will depend on your data. Bruce > >I have an RPG program that emits an XML document which is meant for an >expat XML parser running on an intel platform. As data records are >assembled, they are converted to ASCII via the QDCXLATE api, and then >transmitted to the server. > >The server has been working fine for several months, but over the weekend, >the parser failed with an 'invalid token' error. One of the fields >contained a 'cent' sign, which the parser feels in an invalid >character. In doing a bit of research on this issue, the parser expects >the data in character set UTF-8 -- any character whose ASCII value is >greater than 127 has to be encoded in more than one byte. > >Q: How can I convert the data from EBCDIC to UTF-8? Can it be done with >QDCXLATE? or perhaps ICONV? Or do I have to write a custom function? >
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.