In most cases you do not need to deal with conversion from EBCDIC code to Unicode and vice versa as BeanConnect performs conversion automatically in accordance with the standard code table OSD_EBCDIC_DF04_DRV
.
Code conversion takes place automatically when the following requirements are met:
The value
true
is specified in the configuration propertyencodingActive
.Strings are used for communication.
If the Java program is to receive the 1-byte EBCDIC data stream unconverted, byte arrays must be used instead of strings.
Code table OSD_EBCDIC_DF04_DRV
The table below shows the assignment of 1-byte EBCDIC code, printable Unicode characters, and 2-byte Unicode defined in the code table OSD_EBCDIC_DF04_DRV
.
In the following table
the x and y axes indicate the relevant 1-byte EBCDIC code
the first line in a field indicates the 2-byte Unicode (leading non-significant bytes are not indicated)
the second line in a field indicates the Unicode printing character
Byte - character (Unicode) correspondence
Character (Unicode) - byte correspondence
Substitute character: 6F
In the following table
the x and y axes indicate the relevant 2-byte Unicode
the relevant field indicates the associated 1-byte EBCDIC code