View previous topic :: View next topic
|
Author |
Message |
JaideepMukherjee
New User
Joined: 19 Feb 2010 Posts: 3 Location: India
|
|
|
|
Hi,
In one of the requirement I am working into(using PL/I) , I need to Read a File having Data in UTF-8 format.
When I try to read the file into a copybook structure and display respective variables, I find the displayed data is not readable and hence find it difficult to validate my output.
Could someone help with a sample PL/I Code or a hint that converts UTF-8 data to EBCDIC ?
Thanks much in advance. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
did You try searching the net with utf ebcdic conversion
You would have gotten for example
unicode.org/reports/tr16/
would be a good starting point
it is odd that Your organization did not yet provide standards to accomplish such a task
are You sure thatYou are using utf/8 ( I wonder )
did You search the pl/i docs with WIDECHAR ?? |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
JaideepMukherjee wrote: |
In one of the requirement I am working into(using PL/I) , I need to Read a File having Data in UTF-8 format.
When I try to read the file into a copybook structure and display respective variables, I find the displayed data is not readable and hence find it difficult to validate my output.
Could someone help with a sample PL/I Code or a hint that converts UTF-8 data to EBCDIC ? |
Get Enterprise PL/I V3R9M0, it contains a load of new builtins to deal with non-EBCDIC data. |
|
Back to top |
|
|
JaideepMukherjee
New User
Joined: 19 Feb 2010 Posts: 3 Location: India
|
|
|
|
Thanks enrico-sorichetti , prino for your quick replies...
I will recheck the PL/I materials with your suggestions.... |
|
Back to top |
|
|
JaideepMukherjee
New User
Joined: 19 Feb 2010 Posts: 3 Location: India
|
|
|
|
Really sorry to say, I couldn't get any information ....
WIDECHAR couldn't help me much...
my requirement is, I need to read some UTF-8 data from file and convert it into Human Readable Format, EBCDIC ...
and this conversion needs to be done through PL/I code....
Need your suggestions.... |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
post the hex dump of some records ...
if You cannot do that, we cannot help You.
anyway the best approach for such a task would to work with Your support!
it should not be a one man effort
the decision to support UTF encodings should have been taken at a higher level than application development, it involves quite a bit of effort and standardization
it is usually an IT infrastructure support task, in order also to provide a common set of standards to carry on thongs like the one You are asking for!
talk to Your manager and have him speak to the manager who accepted the utf8
here are a few links to utf docs
www.ietf.org/rfc/rfc3629.txt for the utf8 definition itself
the unicode source of wisdom
unicode.org
faqs on UTF issues ( a link in the above page )
unicode.org/faq
and here is the IBM manual on unicode
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/iea2un71 |
|
Back to top |
|
|
|