[AGENT++] Query about "vb::get_printable_value() "
Jochen Katz
katz at agentpp.com
Thu Oct 12 20:57:02 CEST 2006
Hi,
> Now it seems that the function vb::get_printable_value() does not support
> 2-bytes characters such as Chinese,Japanese,etc.
>
> Is there any known fix for it or I am using it incorrectly, If someone can
> help me about it, it would be great.
the only possible fix is to do this in the application code, as for
snmp++ OctetString this is only an array of single byte characters. Only
the application code "knows" that the string of Oid 1.3.6.x.y.z is
encoded as two byte chars.
Just get a pointer to the array with OctetStr::data() and do whatever is
needed.
Regards,
Jochen
More information about the AGENTPP
mailing list