percent-encoding Questions

8

Solved

I'm trying to GET an URL of the following format using requests.get() in python: http://api.example.com/export/?format=json&key=site:dummy+type:example+group:wheel #!/usr/local/bin/python im...
Variable asked 6/5, 2014 at 13:55

2

I need to put a link with this href="file://attachments/aaaa_#_aaaa.msg" Obviously in that way is not working because the hash character # is used for anchors. So I try to change this to: href="fi...
Numismatist asked 3/2, 2014 at 11:34

4

I need to handle URI (i.e. percent) encoding and decoding in my Perl script. How do I do that? This is a question from the official perlfaq. We're importing the perlfaq to Stack Overflow.
Sophomore asked 22/12, 2010 at 15:12

4

Solved

I want to send http request using node.js. I do: http = require('http'); var options = { host: 'www.mainsms.ru', path: '/api/mainsms/message/send?project='+project+'&sender='+sender+'&m...

3

Solved

I have a default value that contains a '%' which I also insert in to the help doc of my argument. E.g.: default = "5% foo" animrender_group.add_argument( "--foo", default=default, help="Foo amo...
Sodomite asked 16/1, 2014 at 17:2

2

How do I do percent encoding of a string, as described in RFC 3986? I.e. I do not want (IMO, weird) www-url-form-encoded, as that is different. If it matters, I am encoding data that is not necessa...
Discover asked 1/12, 2014 at 0:58

19

Does anyone know of any good C++ code that does this?
Welcher asked 30/9, 2008 at 19:21

4

Solved

Is there a javascript function that takes a string and converts it into another string that is percent-encoded? That way something like "This Guy" turns into "This%20Guy". Thanks
Marquesan asked 6/2, 2011 at 5:41

4

Solved

I have tried a lot of approaches out there, but this tiny little string just cannot be URL decoded. NSString *decoded; NSString *encoded = @"fields=ID%2CdeviceToken"; decoded = (__bridge NSString*...
Cassicassia asked 27/3, 2013 at 3:44

1

Solved

I am using Uri.EncodeDataString to send a query string on a URL. The original string is: Photo($select=Name,Id) In my asp.net web service running in the VS2015 debugger, Uri.EncodeDataString will r...
Entellus asked 6/12, 2016 at 23:33

2

Solved

When I open a url with special characters using window.location, it seems to percent encode the special characters and then opens the URL. For example var url = "http://gramfeed.com/instagram/tags...
Tavia asked 26/8, 2013 at 17:38

4

Solved

System.out.println( new URI("http", "example.com", "/servlet", "a=x%20y", null)); The result is http://example.com/servlet?a=x%2520y, where the query parameter value differs from the supplied on...
Roxane asked 11/11, 2013 at 22:17

1

Solved

After viewing this previous SO question regarding percent encoding, I'm curious as to which styles of encodings are correct - the Wikipedia article on percent encoding alludes to using + instead of...
Ontogeny asked 14/11, 2015 at 3:39

1

Solved

In Ruby, I get the percent-encoding of 'ä' by require 'cgi' CGI.escape('ä') => "%C3%A4" The same with 'ä'.unpack('H2' * 'ä'.bytesize) => ["c3", "a4"] I have two questions: What is the...
Illyrian asked 9/7, 2015 at 12:55

1

It is pretty clear that a web server has to decode any escaped unreserved character (such as alphanums, etc.) to do the URI comparison. For example, http://www.example.com/~user/index.htm shall be ...
Lumbricalis asked 4/5, 2011 at 14:53

1

Why does EscapeDataString behave differently between .NET 4 and 4.5? The outputs are Uri.EscapeDataString("-_.!~*'()") => "-_.!~*'()" Uri.EscapeDataString("-_.!~*'()") => "-_.%21~%2A%27%28%...
Canorous asked 25/7, 2014 at 18:44

1

According to RFC 3986 the following characters are reserved and need to be percent-encoded in order to be used in a URI other than as their reserved uses: :/?#[]@!$&'()*+,;= Furthermore it spe...
Piranha asked 14/4, 2014 at 15:52

1

Solved

The best answers I was able to find for this issue are using XSLT, but I'm just not sure how to apply those answers to my problem. Basically, DOMDocument is doing a fine job of escaping URLs (in ...
Logion asked 20/11, 2013 at 17:8

1

Solved

Apache Tomcat (at least before Tomcat 6 see footnote) treats a percent-encoded slash (%2F) in a URI path just like a regular slash (i.e. as a path delimiter). So e.g. the servlets example page of ...
Isbella asked 24/10, 2013 at 21:14

2

When I paste a url containing some reserved characters to the address bar of IE, FF, Chrome, I see that it displays it as it is but as far as I understand in uses percent-encoding in the background...
Foxhole asked 3/9, 2013 at 7:50

1

Solved

Is %3B treated differently to %3b in an URL?
Stopgap asked 3/11, 2011 at 11:42

2

Solved

There are tons of entries and answers online about this, but they're all going the opposite direction of what I need. From my iTunes XML, I have thousands of percent-encoded entries, in multiple la...
Spectator asked 7/12, 2012 at 18:17

1

I have an orchard site and have the following problem: If I use the URL: http://asiahotelct.com/tours/ct---chau-%C4%91oc---ha-tien-3n2%C4%91, it's okay. But when I change url the / to %2f (like s...
Challenge asked 3/11, 2012 at 15:30

1

Solved

When I enter ë into a form on my web application, this is percent encoded by Google Chrome to %C3%AB. When I use PHP's urlencode('ë'); This is encoded into %EB. Why are the encodings different? ...
Puncture asked 12/10, 2012 at 14:7

1

Solved

I noticed that Wikipedia uses percent encoding for the path section of a URL, but converts the % character to . for the #fragment. For example, on the Russian 'Russia' page, the URL for section 2 ...
Flyleaf asked 22/6, 2012 at 11:41

© 2022 - 2024 — McMap. All rights reserved.