I am generating XML from AS/400. I am doing following steps:
Creating Flat File wiht RCDLEN (260) and CCSID 65535 (Default).
I am reading data from some other Physical File.
Putting data in between XML tags in required XML format and writing this record into Flat File.
Now flat file contains XML formatted data.
I do CPYTOSTMF with STMFCODPAG(*PCASCII).
Then I copy the XML file from IFS to PC.
Now, If I open the XML file on PC, it gives error some times. Error is File contains non UTF-8 characters, those are not valid in XML file.
If I check the data in my original PF, It has some invalid characters. I am getting these data from other open systems into my AS/400.
Can some body help How to suppress or convert these characters, so that I can process XML on PC successfully.
July 31, 2009 12:01 PM
October 24, 2009 1:16 AM