toutf8

Convert any input to UTF-8 by detecting its encoding.

This uses Google’s Compact Encoding Detection to guess the encoding, before converting from that encoding to UTF-8.

Usage

node index.js < random-encoding.txt > utf8.txt