URI malformed error during base64 encoding
See original GitHub issuevar foo = '\ud801\ud804-';
when encodeUriComponent
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
URIError: malformed URI sequence - MDN Web Docs - Mozilla
The JavaScript exception "malformed URI sequence" occurs when URI encoding or decoding wasn't successful.
Read more >JavaScript - Encode characters and URI malformed error
Eventually there was a bug on my server side. I tried to decode the '%' sign. Solved it by the following: On the...
Read more >Repair Base64 | Tools
Quite often, users cannot decode Base64, because they got a malformed or invalid string. For example, this can happen if the source outputs...
Read more >How to Fix Uncaught URIError: URI malformed Errors in JS
In order to fix "Uncaught URIError: URI malformed" errors in your code, you need to ensure that you are passing valid characters to...
Read more >Base64 Encoding of "malformed" - Online
Encode malformed to Base64 format with various advanced options. Our site has an easy to use online tool to convert your data.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed in
2.4.2
Here is how to reproduce:
"12😃45"
URIError: URI malformed
It looks like the combination of “Split Strings Chunk Length” and “Base64” is not correctly handling multibyte characters if they occur on a chunk boundary.
😃
is composed of 2 unicode sequences,\uD83D
and\uDE03
. With a chunk length of 3, this particular string ends up being split into12\uD83D
and\uDE0345