Base64 encode/decode of UTF8 in browser with JS
While working on live demo of JS-YAML, our pure JavaScript port of exciting
PyYAML. I found that there's absolutely no ready solutions for encoding and
decoding Base64 in JavaScript for unicode. Tons of Base64 encoders/decoders that
will blow out your unicode string like я обожаю ириьски into something
absolutely useless. Tons of utf8 encoders/decoders that just do not work.
So I wrote my own..…