How to convert EBCDIC in JDK1.3?

J

jacksu

In JDK1.5, I found that Cp1047 is great enough to handle EBCDIC char
set. But our running environment is still in JDK1.3, and it can't find
Cp1047 converter class.

java.io.UnsupportedEncodingException: Cp1047
at sun.io.Converters.getConverterClass(Converters.java:102)
at sun.io.Converters.newConverter(Converters.java:131)
at
sun.io.CharToByteConverter.getConverter(CharToByteConverter.java:62)
at java.lang.String.getCTBConverter(String.java:217)
at java.lang.String.getBytes(String.java:740)


Any suggestion?

Thanks.
 
J

jacksu

BTW, I am using IBMWebsphere 5.0.2, it is using JDK1.3 underhood.

Any suggestion are highly welcome.
 
T

Thomas Fritsch

jacksu said:
In JDK1.5, I found that Cp1047 is great enough to handle EBCDIC char
set. But our running environment is still in JDK1.3, and it can't find
Cp1047 converter class.

java.io.UnsupportedEncodingException: Cp1047
at sun.io.Converters.getConverterClass(Converters.java:102)
at sun.io.Converters.newConverter(Converters.java:131)
at
sun.io.CharToByteConverter.getConverter(CharToByteConverter.java:62)
at java.lang.String.getCTBConverter(String.java:217)
at java.lang.String.getBytes(String.java:740)


Any suggestion?
My Java1.3.1 supports Cp500 (a very common EBCDIC variant).
The implementing classes (sun.io.ByteToCharCp500 and sun.io.CharToByteCp500)
are in "i18n.jar".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,266
Messages
2,571,079
Members
48,772
Latest member
Backspace Studios

Latest Threads

Top