[SNMP4J] UTF Encoding Support

karunakaran s.l karanfss at gmail.com
Fri Jan 2 10:09:39 CET 2009


Hi Frank,
 Ya Java by default supports the UTF Encoding.
Thanks for your suggestion.

Thanks
Karunakaran
On Fri, Jan 2, 2009 at 2:22 PM, Frank Fock <fock at agentpp.com> wrote:

> Hi,
>
> OctetString does not "use" any encoding. As the name
> suggests, it represents an octet string which is
> a (binary) string of 8-bit bytes.
>
> If you convert an OctetString to a String, UTF-8 is
> used by default (Java does that). You are responsible
> to use the correct format as specified in the
> corresponding MIB specification of the object.
>
> Regards,
> Frank
>
> karunakaran s.l wrote:
>
>>  Hi All,
>>
>>            I want to know the snmp4j's  "OctetString" uses the UTF
>> encoding
>> or not.
>>
>> If it uses the UTF Encoding means what is encoding type (8 or 16). If not
>> using UTF encoding means is any other way of using UTF Encoding for
>> setting
>> the MO Values of type OctetString. (Example: UTF encoding for
>> sysLocation).
>>
>> Please clarify this as soon as possible.
>>
>>
>> Thanks
>> Karunakaran
>> _______________________________________________
>> SNMP4J mailing list
>> SNMP4J at agentpp.org
>> http://lists.agentpp.org/mailman/listinfo/snmp4j
>>
>
> --
> AGENT++
> http://www.agentpp.com
> http://www.mibexplorer.com
> http://www.mibdesigner.com
>
>
>


-- 
Karunakaran



More information about the SNMP4J mailing list