netsql wrote: > I am reading a stream that is supposed to be utf-8. > I use IOUtils to decode and display. > > In console and in swing window, it shows non printable charcters that look > to be 16 bit. Any suggestions on how to go about being able to read the > stream and decode its parts? > > tia, > .V >
Hi, How are you using MINA? Which version of MINA? Please describe what you're doing and what the problem is in more detail if possible. MINA's ByteBuffer already contains code to convert bytes into Java strings so you shouldn't have to use IOUtils for this purpose. Have a look at http://directory.apache.org/subprojects/mina/apidocs/org/apache/mina/common/ByteBuffer.html#getString(java.nio.charset.CharsetDecoder) /Niklas
