In Java all characters are represented as 16 bit Unicode characters and Java (1.3+) provides transformations to any other character representation.

In 1.4+ the nio package provides a whole bunch of classes that do this kind of stuff, CharsetEncoder, CharsetDecoder, Charset, etc.