mathiasbynens / utf8.js

A robust JavaScript implementation of a UTF-8 encoder/decoder, as defined by the Encoding Standard.
https://git.io/utf8js
MIT License
556 stars 115 forks source link

Add support for encoding to and decoding from byte arrays #28

Closed samal-rasmussen closed 2 years ago

samal-rasmussen commented 7 years ago

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

coveralls commented 7 years ago

Coverage Status

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

samal-rasmussen commented 7 years ago

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?

wayofthefuture commented 6 years ago

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

samal-rasmussen commented 4 years ago

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

samal-rasmussen commented 2 years ago

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