Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to convert EBCDIC in JDK1.3?

13 views
Skip to first unread message

jacksu

unread,
Sep 20, 2006, 3:16:58 PM9/20/06
to
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.

jacksu

unread,
Sep 20, 2006, 3:26:51 PM9/20/06
to
BTW, I am using IBMWebsphere 5.0.2, it is using JDK1.3 underhood.

Any suggestion are highly welcome.

Thomas Fritsch

unread,
Sep 20, 2006, 3:43:59 PM9/20/06
to
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".

--
Thomas


0 new messages