node package manager
Stop writing boring code. Discover, share, and reuse within your team. Create a free org ยป

charset-converter

Charset-converter

Check encoding in xml/html page using request header, meta and finally using detection charset library and convert to utf-8

Usage

Require the module :

var converter = require("charset-converter");

Convert to utf-8 with converter.convert() :

var string = converter.convert(contentTypeHeader,content);