Hi ,
I have a PF 'TEST/ADDMST' created with CCSID 1208 to store UTF-8 data. I have populated the file with some CYRILLIC characters.
We need to create a flat file from this data and send it to a third party application.
I use 'CPYTOIMPF FROMFILE(TEST/ADDMST) TOSTMF('/tmp/utf8test1.txt') STMFCCSID(1208) RCDDLM(*CRLF)' to create the IFS flat file.
I use filezilla/ftp to transfer this file to my PC but the file doesn't contain the correct data from the PF. It doesn't contain any Cyrillic characters but just some garbled data in their place.
Only the none-Cyrillic characters appear fine.
I've also tried creating the flat file with BOM Codes as described below.
What is the correct way to transfer UTF-8 data via a flat file?
Regards,
Ash
I have a PF 'TEST/ADDMST' created with CCSID 1208 to store UTF-8 data. I have populated the file with some CYRILLIC characters.
We need to create a flat file from this data and send it to a third party application.
I use 'CPYTOIMPF FROMFILE(TEST/ADDMST) TOSTMF('/tmp/utf8test1.txt') STMFCCSID(1208) RCDDLM(*CRLF)' to create the IFS flat file.
I use filezilla/ftp to transfer this file to my PC but the file doesn't contain the correct data from the PF. It doesn't contain any Cyrillic characters but just some garbled data in their place.
Only the none-Cyrillic characters appear fine.
I've also tried creating the flat file with BOM Codes as described below.
What is the correct way to transfer UTF-8 data via a flat file?
Regards,
Ash
Comment