View previous topic :: View next topic
|
Author |
Message |
vangeti
New User
Joined: 26 Apr 2014 Posts: 2 Location: bangalore
|
|
|
|
Hi,
I am generating a XML from cobol 5 like below
XML GENERATE XML-OUT FROM STRUCTURE
COUNT IN XML-LEN
WITH ENDCODING 1208
WITH XML-DECLARATION
Wen i display the XML-OUT in spool, junk characters are displaying.
Please help in resolving this..
Note: without encoding option spool display are printing fine, but in xml declartion IBM-1140 is coming. but my requirement is to get UTF-8 in declaration. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Can you provide some example input, what you get with that, and what you expect? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
You ARE aware, I hope, that the mainframe uses an EBCDIC code page? And that if you encode XML with 1208, what you will see on the mainframe will NOT be human-legible since the code page of the data won't match the code page of the system?
In other words, what you are calling "junk characters" most likely are the correctly encoded data for the XML and you need to transfer the XML data set to a system that is using code page 1208 to verify the contents and not try to do so on the mainframe. |
|
Back to top |
|
|
|