By default, java using utf-8 as string encoding.
While convert bytes to string you need to take care of the encoding, if you want to reserve the original bytes, you have to choose the 1-1 encoding, like ASCII ISO-5589-1 etc.
By default, java using utf-8 as string encoding.
While convert bytes to string you need to take care of the encoding, if you want to reserve the original bytes, you have to choose the 1-1 encoding, like ASCII ISO-5589-1 etc.