Questions tagged [uriencoding]

32 questions
1
vote
2 answers

Windows phone URL encoding issues(Windows phone)

A simple request to the server to get a file is giving some issues, Here's the url, https://dc2-vault.myvzw.com/dv/api/user/c107a6db69104a10bc247a28fb81131e/search?query=contentType:audio/* AND (genre like 'RoyalJatt.Com…
golldy
  • 1,279
  • 1
  • 15
  • 31
1
vote
0 answers

Rails standardize URI.encode

If {"foo" => "yo%20daddy"} comes through the url, params[:foo] plays nicely with URI.encode, resolving to: URI.encode("yo daddy") #=> "yo%20daddy" However if "foo" comes as a JSON parameter, it does not. URI.encode("yo%20daddy") #=>…
gr8scott06
  • 903
  • 1
  • 11
  • 20
1
vote
2 answers

URLDecoder: Illegal hex characters in escape (%) pattern - For input string: "^*"

i want to send an email this text Destination : 6W - ATLANTA WEST!@#$%^*!gemini!@#$%^*!jfds!@#$%^*!,Trailer Number : 000564,,Drop empty trailer at Plant Numbe :546,Pick up trailer at Plant Number :45, Bill Date : 25-Jan-2013,Bill Time - Eastern…
Java Questions
  • 7,813
  • 41
  • 118
  • 176
0
votes
0 answers

CentOS 7 Tomcat 7 URIEncoding is not working

I am using CentOS 7 and Tomcat 7.0.69 with java 1.8.0 The URIEncoding is turnet on, but when entering url with characters like åäö tomcat gives an error and the url is not encoded to %xx format INFO: Error parsing HTTP request header Note: further…
user4845680
  • 128
  • 2
  • 12
0
votes
1 answer

Javascript encodeURIComponent and Java decode issue

I have a certain text I am encoding in JS using encodeURIComponent. The original text is weoowuyteeeee !_. Test could you please resubmit again? I am doing the following in my JS code before sending it. var text =…
p0tta
  • 1,461
  • 6
  • 28
  • 49
0
votes
1 answer

How to convert base64-encoded URI data to a file *server side*?

I have a URI-data string that looks like this: data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2w..... and so on I need to save this to a jpg on the server, and using only Javascript. As a last resort, I could use the client to write this to a…
Marc
  • 1,812
  • 4
  • 23
  • 36
0
votes
1 answer

Get two URL parameters - but need to preserve & symbol

I need to get two parameters from a URL, and they could potensially contain an & symbol or a space. as part of the search string. Example: mysite.com?param1=Bower & Wilkins?param2=Speakers I realize that Bower & Wilkins contains the obvious symbol…
Filip Blaauw
  • 731
  • 2
  • 16
  • 29
0
votes
1 answer

What is the correct HTTP response for requests without percent encoded URI?

Talking about HTTP API/HTTP Web server, what is the HTTP response code that the server should returns in case the client did not apply a URL encoding to requests params. I tried to look into HTTP RFCs but nothing specific or useful regarding that.
0
votes
1 answer

URL encoding "data:image/jpg; base64" image

How can I encode the data:image/jpeg;base64 data url to be transmitted correctly through an AJAX POST. I have the following code xhr.open('POST', 'http://url-sent-to/image/' + saveImage + '&imageid=' + imageid.value, true); that is doing so now.…
Matt
  • 1,239
  • 4
  • 24
  • 53
0
votes
1 answer

how to unscramble html after "jquery serialize form"

OK I guess it's not a matter of scrambling as much as encoding... But when I take HTML from a form field and pass it through jQuery serialize, all the special characters get changed so if I want to output the HTML as actual HTML to be rendered as…
Matt Welander
  • 8,234
  • 24
  • 88
  • 138
0
votes
1 answer

Encoding a URI parameters

Some of our GET request pass paramaters in the URI and in as a request parameter. So in firebug you'd see the same parameter in the URI and you'd see it also on the params tab for the request. When the parameter values needs to be encoded e.g. it is…
More Than Five
  • 9,959
  • 21
  • 77
  • 127
0
votes
2 answers

Spring MVC URIEncoding can't send requestparam correctly

I need to send some request parameters from browser to Spring MVC controller and process them later like method parameters. The problem is that tomcat I guess didn't put right encoding for URI data which passing through. Instead of 'Имя' I'm having:…
USER_JVM
  • 69
  • 4
  • 14
0
votes
2 answers

trying to URIEncode a string in java using URIUtils

I'm trying to URIENcode a string in java using URIUtils of spring framework. it supposed to be simple as far as I understood but for some reason the string stays unchanged. I have the following string: http://www.foo.bar/foo/bar and I want to…
ufk
  • 30,912
  • 70
  • 235
  • 386
0
votes
1 answer

Jena SDB IRI validation

I have got several strange IRIs that I want to insert into Jena SDB, but I got some error messages: http://example.org/text/1234#offset_2311_2317_10-12% the error message is: Code: 30/ILLEGAL_PERCENT_ENCODING in FRAGMENT: The host component a…
afterglowlee
  • 11,670
  • 5
  • 22
  • 23
0
votes
1 answer

mod_rewrite for pretty url with uriencoded query strings

ok, so I've tried many things I've found on SO and elsewhere, but I just can't get it to work, always receiving a 404 error code. I'd like to enter this…
K'shin Gendron
  • 1,589
  • 1
  • 12
  • 14