I receive text from web service in ASCII, and I use ICONV() to translate it to EBCID. It works fine until I have accents in the text. When accents are found, like letter é the return code on the ICONV API call is 4294967295
and it is not translated.
This is how I open:
source.CCSID = 1208; // 1208 = UTF-8
target.CCSID = 0; // 0 = current job's CCSID
toEBC = QtqIconvOpen( target: source );
My machine setup is as follow:
System value . . . . . : QCHRID is:
Character ID . . . . . : 697 1-32767
Code page . . . . . . : 37 1-32767
System value . . . . . : QCCSID
Coded character set
identifier . . . . . : 65535 1-65535
I`ve tried all sorts of combination for the Source.CCSID and Target.CCSID and nothing works. Any idea on how I can get this done?
I also tried the Translate program, but that changes the é to an i