Sometimes you need to decode some utf8 strings is JS, so just use this piece of code

GeSHi (javascript):
function utf8_decode(str_data){
var tmp_arr = [], i = ac = c = c1 = c2 = 0;
while (i < str_data.length){
c = str_data.charCodeAt(i)
if (c < 128){
tmp_arr[ac++] = String.fromCharCode(c);
i++;
} else if ((c > 191) && (c < 224)) {
c2 = str_data.charCodeAt(i+1);
tmp_arr[ac++] = String.fromCharCode(((c & 31) << 6) | (c2 & 63));
i += 2;
} else {
c2 = str_data.charCodeAt(i+1);
c3 = str_data.charCodeAt(i+2);
tmp_arr[ac++] = String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));
i += 3;
}
}
return tmp_arr.join('');
}
Created by GeSHI 1.0.7.20