Convert OctetString to "human" readable string

I read some table (tableUtils.getTable)

Somme column contains OctetString
with varBinding.getVariable().toString I obtain somethink like
Is there a way to convert it to a “human” readable string ?


as the last byte (00) of the string is not printable, toString() automatically calls toHexString(). You could use toASCII(char placeholder) function of OcetString class.

Kind regards,

1 Like

Ok I see. Thanks a lot !