Hi,
i have query on how to store UTF-8 data in a cobol program or if stored in a PIC N variable, how can it be converted to UTF-8 data.
My requirement is: Unicode Data (UTF-8 which has chinese characters) from MQ is inserted in DB2 cobol which also supports UTF-8 data as the table is created with CCSID 1208. My Cobol Application fetches the data from the table and writes it into a file. How do i store this UTF-8 data in my application program? or should i declare PIC N(n) variable with usage National which supports UTF-16 data, then how to convert to UTF-8 format? This conversion is a must since it needs to be transferred to a windows server and this unicode data should be visible at the windows side.
Currently i am using a PIC N(n) variable with USAGE NATIONAL and writing it onto the file.
Kindly let me know your thoughts.