Originally posted by: gkoukou
Thank you Paul for the answer.
I ran this (1): =RUN("mymap01",ECHOIN(1,SUBSTITUTE(CPACKAGE ( In1,"ASCII" ), "DSDDfh:", ""))+ " -OE1") and the result was that for each of the two bytes that makes the one Greek Character, the output was another two bytes (four bytes for each Greek Character). Those two bytes after some search were the UTF-8 representation of each of the original ones. So to transform them back to the original codeset I used the function CTEXT (2):
=CTEXT(RUN("mymap01",ECHOIN(1,SUBSTITUTE(CPACKAGE ( In1,"ASCII" ), "DSDDfh:", ""))+ " -OE1"),"UTF-8")
Example for Greek capital letter Omikron:
Original input Hex: CE 9F (This is UTF-8 representation for Greek capital letter Omikron)
Using (1) the final result is: C3 8E C2 9F (C3 8E is the UTF-8 representation of CE and C2 9F the one for the 9F)
Using (2) the final result is: CE 9F
Thanks again Paul for your answer, without you clarifying what needed to be done in CPACKAGE function I would not find a solution.
George
#IBMSterlingTransformationExtender#DataExchange#IBM-Websphere-Transformation-Extender