For example, I put the Windows-1251 (Cyrillic) encoding in an HTML document, enter the string "Egor" and use JavaScript to display the code for this character:
var str = 'Егор'; str.charCodeAt(0);//1056 The result is 1056 . I look at the symbol table and I can not understand where this code came from.
I am looking for information - everywhere only tables, and basic concepts (what is encoding).
Question: how is it all interconnected and working?