Page 1 of 1

National language support in COBOL

PostPosted: Tue Aug 28, 2018 3:46 pm
by nikesh_rai
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.

Re: National language support in COBOL

PostPosted: Tue Aug 28, 2018 4:46 pm
by Robert Sample
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".

Re: National language support in COBOL

PostPosted: Tue Sep 04, 2018 2:14 pm
by nikesh_rai
Thanks Robert.

I got your point.