Function fromCharCode doesn’t work with international ANSI chars. For example, for Russian ANSI (cp-1251) chars with ID from 192 to 223 it returns special characters. How to fix this issue?
I think, it’s required to convert ANSI char ID to Unicode char ID and then use fromCharCode. But how to convert ANSI char ID to Unicode char ID (depending on the current locale/codepage)?
Thanks a lot for the help!
Considering that you know code page that your data is encoded in, just set up a mapping Object with keys being codes in your code page and values being proper Unicode symbols or numeric codepoints and use it to convert your data.