Search code examples
javascriptnode.jsserversnmp

NodeJs support encoding


I am new to NodeJS, developing my first server app, which talks with snmp protocol support device, I received data from device without problem, but looks like strings with description of device is in unsupported encoding for my local language, how to add support for my local language in NodeJS?

Postman response


Solution

  • For Russian, Cyrillic writing, common encodings are KOI8-R or CP1251.

    In this case, apparently CP1251 was the correct guess.