mathiasbynens / mathiasbynens/utf8.js
Invalid continuation byte
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 562
- Forks
- 113
- PR merge metrics
- No merged PRs in 30d
Description
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 a way in which I can find the byte that is causing this error? This error appears with some of the users of my DB, not all, and I need to compare them.
Thanks
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Begin at the utf8.decode(str) call described in the issue and reproduce the invalid-continuation-byte failure with affected and unaffected database values. Compare the input bytes and define completion as identifying the offending byte or documenting a reliable diagnostic; no repository file or test is named.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100