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

A robust JavaScript implementation of a UTF-8 encoder/decoder, as defined by the Encoding Standard.

Results 23 utf8.js issues
Sort by recently updated
recently updated
newest added

This module encodes a string to *look like* a UTF-8 string, which may be used for online UTF-8 demos, but as far as bytes are concerned, which is important for...

Adding a ? if passing an empty string to avoid error

Hi! I'm using shorter and simplier implementation from there: https://gist.github.com/lihnux/2aa4a6f5a9170974f6aa ``` function toUTF8Array(str) { let utf8 = []; for (let i = 0; i < str.length; i++) { let charcode...

macOS, Webstorm 2017.1, Reactjs I'm receving a utf-8 encoded JSON, converting it to a string and then utf8.decode(str). At some point I'm getting the error Invalid continuation byte. Is there...

@mathiasbynens @pineapplemachine @darrachequesne I want to encode some string's that some of theme are in utf8 charset and some are different. when I pass a string in utf8 formate to...

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

This updates compatibility of the tests for python3 while retaining compatibility with python2

``` TypeError: string.charCodeAt is not a function at ucs2decode (C:\Users\bash\NEMid\node_modules\utf8\utf8.js:30:19) at Object.utf8decode [as decode] (C:\Users\bash\NEMid\node_modules\utf8\utf8.js:201:15) at Object. (C:\Users\bash\NEMid\client.js:21:95) at Module._compile (module.js:573:32) at Object.Module._extensions..js (module.js:582:10) at Module.load (module.js:490:32) at tryModuleLoad (module.js:449:12)...

I want to use ES6 import format to include this in our code. It seems this is not supported. Can you confirm if this is possible or not?