mathiasbynens / mathiasbynens/base64

Invalid UTF-8 detected

Open
#22 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
519
Forks
98
PR merge metrics
No merged PRs in 30d

Description

var encoded = 'Zm9vIMKpIGJhciDwnYyGIGJheg==';
var bytes = base64.decode(encoded);
var text = utf8.decode(bytes);
console.log(text);
output
Invalid UTF-8 detected

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the exact snippet using base64.decode and utf8.decode, then inspect how the decoded bytes are handled. Verify whether the supplied encoded value is rejected incorrectly, and add coverage showing the expected result for this input.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.