question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

URLEncode with unicode characters is malformed inside a Querystring

See original GitHub issue

Hi,

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:closed
  • Created 6 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
canton7commented, Jun 9, 2017

Released in 1.4.1

1reaction
canton7commented, Jun 9, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found