We have snmp agent in our product, which sends system alerts to snmp server, and our alerts may be in Unicode. We are using 3rd party lib for sending out, which encodes stings into a ASKII byte array by default. Finally we got garbage on messages.
Is there unicode support for snmp protocol?
As Lex Li already mentioned SNMP does not care about string encoding. The OCTET STRING is just a byte array. So when you have to deal with localization/ internationalization the proper solution is definitely the use of UTF-8 encoding/decoding. But keep in mind that SNMP4J and many other libraries treat byte array as ASCII string in methods like
toString()
. So you'll have to write your own extensions.