Data loss in Bytes to String Conversion


The input to a service is bytes, I’m converting Bytes to string using pub.string.bytesToString, i’m using encoding as 037. I’m converting it to string to perform few operations,then again i convert it back to bytes and then post it to a queue. But data loss occurs. Could anyone suggest a way to avoid dataloss?


What do you mean by “i’m using encoding as 037”?
encoding is something like UTF-8 or ISO-8859-1 etc.
Find the right encoding that the Bytes is using, and you should avoid the issue.