Is there any way to convert text from CP852 to UTF-8 in node or in client webpage?
It should be possible with iconv
:
var iconv = require('iconv');
var cp852 = new iconv.Iconv('CP852', 'UTF-8');
// based on http://en.wikipedia.org/wiki/Code_page_852
// Ç (U+00C7), É (U+00C9), á (U+00E1), and ░ (U+2591)
var input = new Buffer([ 128, 144, 160, 176 ]);
console.log(cp852.convert(input));
Or you might try iconv-lite
:
var iconv = require('iconv-lite');
var input = new Buffer([ 128, 144, 160, 176 ]);
console.log(iconv.decode(input, 'cp852'));