utf8.js
utf8.js copied to clipboard
Add support for encoding to and decoding from byte arrays
This is a solution for https://github.com/mathiasbynens/utf8.js/issues/7
Coverage increased (+0.5%) to 98.026% when pulling c783ad6f607b3bb87949bb39110ecba18de19af6 on samal84:master into 2ce09544b62f2a274dbcd249473c0986e3660849 on mathiasbynens:master.
It seems the build is failing because the build server's js environment doesn't support the Uint8Array type. Should I add a commit with feature detection for Uint8Array?
+1 Would be nice to have this feature....
I've fixed up this branch so it builds again. The implementation is a bit cleaner too.
Time flies and TextEncoder/TextDecoder are now widely supported in js.