National language support in COBOL



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

National language support in COBOL

Postby nikesh_rai » Tue Aug 28, 2018 3:46 pm

Hi Friends,

I need to write a COBOL program which will receive Turkish characters/string in UTF-8 format, from FE screen. I need to convert them in equivalent English characters and pass it to downstream application.

Can you please guide me how to proceed for this. I went through some links related to UTF-8, EBCDIC and read about COBOL intrinsic function NATIONAL-OF and DISPLAY-OF. But I still need to understand how UTF-8 char formats can be stored as English chars.
Thanks
Nikesh Rai
nikesh_rai
 
Posts: 205
Joined: Tue Oct 18, 2011 1:27 am
Has thanked: 17 times
Been thanked: 0 time

Re: National language support in COBOL

Postby Robert Sample » Tue Aug 28, 2018 4:46 pm

But I still need to understand how UTF-8 char formats can be stored as English chars.
The first 128 UTF-8 characters are backwards compatible with ASCII. So if you know how ASCII can be stored as English characters, you know how UTF-8 characters can be stored as English characters. And, by the way, do not use script kiddie language -- "char" is a perfectly valid English word and hence should NOT be used as a substitute for "character" -- if you mean "character", spell out "character".
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: National language support in COBOL

Postby nikesh_rai » Tue Sep 04, 2018 2:14 pm

Thanks Robert.

I got your point.
Thanks
Nikesh Rai
nikesh_rai
 
Posts: 205
Joined: Tue Oct 18, 2011 1:27 am
Has thanked: 17 times
Been thanked: 0 time


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post