>I have an issue where a customer is not forthright in providing us a the codepage of data coming into a TCP STC on z/OS ..We bring the data in via a Scoket-Read,. Is there any way I can query the datastream and find out what codepage it is ?
There was a lot of advice about how to *guess* on the encoding of the data. I for one have a strong opinion on who is responsible to unambiguously declare all attributes of data: The owner of the data. In your case this is the customer. When it comes to text data, the code page the data is encoded with is one of those attributes, maybe the most important one. I would never take responsibility for correct processing of text data if I'm *not* told the code page the text was encoded with. Sure, you can take a look an guess, and this might be easier in some geographies. Here in Europe, there are too many similar yet different code pages in use. You might not look at a snippet of data containing some of those variant characters. Or, more likely, you see those characters. How do you decide whether the glyph show with code page A or the one show with code page B is the correct one? Your customer needs to understand its his/her responsibility to tell you. -- Peter Hunkeler -- Peter Hunkeler ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
