URLEncode with unicode characters is malformed inside a Querystring
See original GitHub issueHi,
I found a bug in the Query building part of RestEase.
In Requester.cs
line 132 the following code does a double encode, which causes the character é
to become %u00e9
first (from the QueryParamBuilder
), and finally %25u00e9
when the uriBuilder.Uri
is returned.
uriBuilder.Query = QueryParamBuilder.Build(initialQueryString, queryParams).TrimStart('?');
return uriBuilder.Uri;
In other words the QueryParamBuilder
class does an encode, and the UriBuilder
class does another encode. So the string get encoded twice.
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (7 by maintainers)
Top Results From Across the Web
c# - QueryString malformed after URLDecode
I'm trying to pass in a Base64 string into a C#.Net web application via the QueryString. When the string arrives the "+" (plus)...
Read more >Using URL encoding to handle special characters in a ...
While it is possible to load documents into MarkLogic Server, where the document URI contains special characters not encoded, it is recommended ...
Read more >encodeURIComponent() - JavaScript - MDN Web Docs
The encodeURIComponent() function encodes a URI by replacing each instance of certain characters by one, two, three, or four escape ...
Read more >encodeURI() - JavaScript - MDN Web Docs
The encodeURI() function encodes a URI by replacing each instance of certain characters by one, two, three, or four escape sequences ...
Read more >Beginner's guide to URL encoding. ...
URL encoding, also known as percent-encoding, is an essential technique used in web development to ensure that URLs are properly transmitted ...
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
Released in 1.4.1
I messed up and left some work I wanted to include in this release on my computer at home, so maybe tonight, maybe sometime over the weekend.