С многобайтными кодировками не работает:
Сообщение от http://www.nczonline.net/blog/2009/12/08/computer-science-in-javascript-base64-encoding/
|
Before even attempting to base64 encode a string, you should check to see if the string contains only ASCII characters. Since base64 encoding requires eight bits per input character, any character with a code higher than 255 cannot be accurately represented. The specification indicates that an error should be thrown in this case
|