UTF8 to EBCDIC conversion help - Cp420
Posted on 2006-05-21
I am trying to read an Arabic string from a UTF-8 file and then convert the string into EBCDIC - Cp420 charset. I've been struggling with this and any inputs on what is the best way to do it with references/links to sample source code will really help.
I've tried using a BufferedReader and then encoding the values, as well as read a UTF8 string and then use the getBytes("Cp420") invocation to return my requirement, but to no avail. I believe I am missing something here but can't put a finger as to what exactly it is.
Incidentally, when I use the Charsets.availableCharsets() method, I do not see the Cp420 charset on the output - appreciate any assistance regarding this.