muralikrishnan_new
New User
Joined: 02 Jun 2013 Posts: 15 Location: India
|
|
|
|
Hi,
I am trying to convert the UTF-8 data to EBCDIC data in Cobol. So I have used as mentioned below,
Code: |
MOVE FUNCTION NATIONAL-OF(WS-UTF-RCD , 1208 )
TO WS-TEMP-RCD
MOVE FUNCTION DISPLAY-OF(WS-TEMP-RCD, 500 )
TO OPT-RCD
|
Input :-
Code: |
Grundst.ck und Geb.eEN ALS EINEM JAH
4776677F6627662466E76644244524444424
725E434C3B05E4075245455E01C3059E5D0A
|
Output:-
Code: |
Grundst.ck und Geb.eEN ALS EINEM JAH
C9A98AA3894A984C8838CD4CDE4CCDCD4DCC
7945423F3204540752F55501320595540118
|
For the Symbol "ü" hex value is X'FC' in UTF-8 and for "ä" hex value is X'E4'.
but all the values after conversion changed as X'3F'.
I tried to use all the Multilingual CCSID for EBCDIC (1140,500,037.,etc).
Could anyone help me which CCSID can be used to convert these characters to EBCDIC.
Thanks |
|