Thanks for the answer.
But unfortunatly this function translate somehow.
It shouldn't be translate the values, which are in Hex-String.
I want only translate strings or numbers and the hexadecimal numbers should be in their hexadecimal format.
Hex-STRING: 0A 00 3F FE <- this values shouldn't be reformated - This in output from snmpget
STRING: <NL>6-- <- This line with some special characters should be format.
The hex-string show me for my first line in your example as output: 0x30783061303033666665
And for the second line the correct Hex-STRING.
Do you know the reason for it?
Thank you in advance for your efforts.