Where can I find code for converting Java data types to/from other data formats such as: EBCDIC, IBM370 COMP (binary numbers up to 9 digits), and COMP-16 (packed decimal numbers)?
Location: http://www.jguru.com/faq/view.jsp?EID=135894 Created: Aug 27, 2000 Modified: 2001-08-18 18:00:02.514 Author: Sandip Chitale (http://www.jguru.com/guru/viewbio.jsp?EID=14537) Question originally posed by claire kennedy (http://www.jguru.com/guru/viewbio.jsp?EID=128156 You will have to use the java.io.InputStreamReader class. This can convert data in any encoding to Unicode as long as the right ByteToCharConvertor is available. Here are the supported encodings and some more info on Character Stream I/O.
Related Questions
- Where can I find code for converting Java data types to/from other data formats such as: EBCDIC, IBM370 COMP (binary numbers up to 9 digits), and COMP-16 (packed decimal numbers)?
- Can I use Java data types such as Strings to represent file names instead of character arrays?
- What are the limitations in Mapping SQL data types to Java types?