The javascript function charCodeAt() will convert a character to the UNICODE numeric.
If, instead, I want to find the windows-1252 numeric code of a character, how can I do that?
Thanks,
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Are you looking for Windows1251 to Unicode:
use for example as
String.fromCharCode(winEncToUni[65])(returnsA)or perhaps Unicode to Windows1251?
I have shortened the table quite much: the first half of the codes (0x00-0x7F) are equal in all the codepages (and in Unicode), and the sequence 0xA0-0xFF are equal in Unicode and Windows-1252.