I need to convert string in UTF-8 to byte array in 1251 codepage in JavaScript. Google says nothing useful. Help :)
EDIT: What is it for.
We have server and
If you should guess encoding, for Russian text you can use this