As reported on the users list (https://sourceforge.net/p/net-snmp/mailman/message/34240467/), UTF-8 strings are not properly printed. I set syscontact to "IQTV-ö05" in snmpd, and a snmpget of sysContact.0 prints a hex string.
Then you'll have to get up close and personal with sprint_realloc_octet_string in snmplib/mib.c to handle the 't' display hint and/or tweak the output guessing code.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is there any progress with printing of UTF-8 characters? Or do you have any hint, what should be done?
Thanks
Start by reading about detecting UTF-8 (e.g. http://stackoverflow.com/questions/1031645/how-to-detect-utf-8-in-plain-c).
Then you'll have to get up close and personal with sprint_realloc_octet_string in snmplib/mib.c to handle the 't' display hint and/or tweak the output guessing code.
I have tried to prepare some solution. What do you think about that?
I small improved your patch (since you use incorrect 4-byte Sequence). Should be 240-244.
And I agree, this patch also fixed my issue: [#2815]
Related
Bugs:
#2815Last edit: Mike Stupalov 2017-12-17
A fix has been checked in on the v5.7 and master branches. Please retest.