utf8.js
utf8.js copied to clipboard
A robust JavaScript implementation of a UTF-8 encoder/decoder, as defined by the Encoding Standard.
Would be nice to have benchmarks and execute them on a regular basis.
…where instead of throwing errors, each “invalid” byte is replaced with U+FFFD.
## Background OpenHarmony is an open-source operating system and community that is widely used in the field of intelligent terminals. Currently,utf8 is widely used in mobile application development for OpenHarmony....