Home > Archive > Cobol > February 2005 > COBOL (zOS) and Unicode
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
COBOL (zOS) and Unicode
|
|
| Bertram 2005-02-10, 3:55 am |
| Is there a possibility to convert the e.g. html-notation of unicode like
〹 to a "normal" cobol structure like PIC N(...) and can COBOL convert
it back?
Whow does COBOL store data in PIC N if the unicode needs more than 2 bytes?
| |
|
| Bertram wrote:
> Is there a possibility to convert the e.g. html-notation of unicode like
> 〹 to a "normal" cobol structure like PIC N(...) and can COBOL convert
> it back?
You can look at Function Char - strip off the , and it'll give you the
character. I'm not sure how high up those codes go, though, and whether
it only supports ASCII output, or Unicode. It would be where I would
start, though. :)
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~
~ / \ / ~ Live from Montgomery, AL! ~
~ / \/ o ~ ~
~ / /\ - | ~ daniel@thebelowdomain ~
~ _____ / \ | ~ http://www.djs-consulting.com ~
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
~ GEEKCODE 3.12 GCS/IT d s-:+ a C++ L++ E--- W++ N++ o? K- w$ ~
~ !O M-- V PS+ PE++ Y? !PGP t+ 5? X+ R* tv b+ DI++ D+ G- e ~
~ h---- r+++ z++++ ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|