Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Conversion of UTF-8 to EBCDIC

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
muralikrishnan_new

New User


Joined: 02 Jun 2013
Posts: 15
Location: India

PostPosted: Tue Nov 21, 2017 5:33 pm    Post subject: Conversion of UTF-8 to EBCDIC
Reply with quote

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
Back to top
View user's profile Send private message

prino

Senior Member


Joined: 07 Feb 2009
Posts: 1117
Location: Oostende, Belgium

PostPosted: Wed Nov 22, 2017 3:29 am    Post subject:
Reply with quote

Talking porkies. U-umlaut and A-umlaut are both encoded using two bytes in UTF8.

Go back and RTFM
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Code char set conversion from IBM-420... thelefthandofdarkness IBM Tools 4 Thu Jul 26, 2018 3:03 pm
No new posts Regarding the EBCDIC CCSID mapping. sakthikumarT DB2 3 Wed Jan 10, 2018 4:45 pm
No new posts Conversion of DLI update Jobs as BMP ... Gopinath Shanmugam IMS DB/DC 3 Wed Dec 20, 2017 12:02 pm
No new posts Mainframe Blocks to Tracks conversion upendrasri JCL & VSAM 1 Sat Nov 18, 2017 10:52 am
No new posts Can EDCICONV convert EBCDIC to ASCII... natt.sut IBM Tools 3 Fri Nov 17, 2017 8:46 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us