This content has been marked as final. Show 3 replies
First, thanks for the quick reply.
veldhanas wrote:I don't use this method because on my real application I need to encode and decode on a existing ByteBuffer, this was just an SSCCE.
Why don't you encode and decode like this.
Anyway, I did test the code you post and it works. I analyzed the differences and besides the encoding/decoding method you retrieve the String differently.
Which was the source of my problem.
String s2 = cha.toString();
Thank you very much, the dukes are yours.