Hi 通子, Thanks. Actually I need to support most of languages with the same codes. That is to say, I don't know which charsets the snmp trap sender will use. You know, when I got the snmp trap data, I will display it in one web application and we are using UTF-8 as the encoding in the jsp page. So, is there an unicode way to not do any directly charset conversion in the codes? Thanks again.
Eternal 2008/12/23 通子 <[email protected]> > You can try to transform the with apropriate charactor set. > > return new String(((OctetString) vb[i].getVariable()) > .toByteArray(), "gb2312"); > _______________________________________________ > SNMP4J mailing list > [email protected] > http://lists.agentpp.org/mailman/listinfo/snmp4j >
_______________________________________________ SNMP4J mailing list [email protected] http://lists.agentpp.org/mailman/listinfo/snmp4j
