I had a question about the control characters. I have to found them in a string and delete them. Made some research and found useful tips.
I wrote this:
output.toString().replaceAll("[\\p{Cntrl}\\p{Cc}]","")
But I was asked if this method can find the control characters if they are written in bytes. To be honest, I have no idea. Try to look on the net, but don't know how I can test it.
Thanks