I have cyrillic word in my js file which charset is UTF-8 without BOM. How can I get hex index of unicode table of my first character? The word "Абв" and result must return hex code "0x0410".
I tried this code, but it returns wrong result:
var code = "А".charCodeAt(0);
var codeHex = code.toString(16).toUpperCase();
console.log(code, codeHex);