There *are* general ways to convert Unicode into EBCDIC. IBM z/OS Unicode
Services implements several of them. Yes, a Unicode file potentially (but
not necessarily) includes characters not found in a particular EBCDIC code
page. Traditionally, they are converted to EBCDIC SUB, X'3F'. Assuming you
refer to SBCS EBCDIC, the conversion results are likely to be unsatisfying
if the Unicode file is, as is likely, rich in characters with no EBCDIC
equivalent. OTOH EBCDIC DBCS includes a very large subset of common Unicode
characters.

Charles

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On
Behalf Of Tony Harminc
Sent: Monday, January 13, 2014 2:27 PM
To: [email protected]
Subject: Re: Subject Unicode

On 12 January 2014 10:21, Shmuel Metz (Seymour J.)
<[email protected]> wrote:
> on 01/09/2014 at 09:00 PM, Tony Harminc <[email protected]> said:
>
>>There is no general way to convert UNICODE into EBCDIC,
>
> There are EBCDIC transforms for Unicode. I'm not sure whether that
qulifies as EBCDIC.

Exactly as much as UTF-8 qualifies as ASCII, that is to say, not at all. In
both cases (UTF-8 and UTF-EBCDIC), there are several characteristics of the
encoded result that are convenient in the respective environments. In
particular, for legacy applications, the most often used characters in
single-byte ASCII/EBCDIC are encoded by the same byte value in UTF-xxx. But
no one would say that UTF-8 *is* ASCII, or that UTF-EBCDIC *is* EBCDIC.

Tony H.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email
to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to