utf8.js icon indicating copy to clipboard operation
utf8.js copied to clipboard

Add support for encoding to and decoding from byte arrays

Open samal-rasmussen opened this issue 7 years ago • 4 comments

This is a solution for https://github.com/mathiasbynens/utf8.js/issues/7

samal-rasmussen avatar May 28 '17 21:05 samal-rasmussen

Coverage Status

Coverage increased (+0.5%) to 98.026% when pulling c783ad6f607b3bb87949bb39110ecba18de19af6 on samal84:master into 2ce09544b62f2a274dbcd249473c0986e3660849 on mathiasbynens:master.

coveralls avatar May 29 '17 15:05 coveralls

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?

samal-rasmussen avatar May 29 '17 15:05 samal-rasmussen

+1 Would be nice to have this feature....

wayofthefuture avatar Nov 19 '17 01:11 wayofthefuture

I've fixed up this branch so it builds again. The implementation is a bit cleaner too.

samal-rasmussen avatar Apr 01 '20 18:04 samal-rasmussen

Time flies and TextEncoder/TextDecoder are now widely supported in js.

samal-rasmussen avatar Sep 20 '22 14:09 samal-rasmussen