Questions tagged [uriencoding]
32 questions
32
votes
5 answers
How to encode a String representing URL path with JSTL?
What is the best way to URL-encode a String representing URL path (not request parameter) with JSTL?
According to any documentation I find, this should take care of it. But it does not. It encodes parameters…

Josh Johnson
- 10,729
- 12
- 60
- 83
9
votes
3 answers
is a query string with a / in it valid?
Due to a miscommunication with an affiliate partner we're working with the URL they call on our server has been mixed up.
This is the URL they are supposed to call on our server :
/AAAAAAAA/?b=CCCCCCC
unfotunately it was implemented in their…

Simon_Weaver
- 140,023
- 84
- 646
- 689
9
votes
1 answer
URIencode and colon
colon is a character which can be encoded to '%3A' as per many sites and when I try to encode using URIencode it is not working
for example if I try to encode like URIencode(':'); then nothing happens. colon is returned. Why is this?? can someone…

Jay Mayu
- 17,023
- 32
- 114
- 148
6
votes
3 answers
Angularjs How uri components are encoded
I was expecting AngularJS to encode query string parameters using the standard javascript function encodeURIComponent. According to the following test it is not the case:
describe('$http', function () {
it('encodes uri components correctly',…

nakhli
- 4,009
- 5
- 38
- 61
3
votes
2 answers
What is the point of Tomcat's setting URIEncoding?
In Apache Tomcat, parameter URIEncoding tells Tomcat how to interpret incoming URIs:
URIEncoding
This specifies the character encoding used to decode the URI bytes,
after %xx decoding the URL. If not specified, ISO-8859-1 will be used.
Apache…

sleske
- 81,358
- 34
- 189
- 227
3
votes
1 answer
spring roo/spring mvc: how can i set uriencoding for controller method
i have a spring roo webapplication running in tomcat 7. there i have a spring roo generated controller method, that i pushed in for debugging issues:
@RequestMapping(params = "find=ByFirstNameEqualsAndLastNameEquals", method =…

tom
- 53
- 7
2
votes
2 answers
How do I url-encode in Dart in the format that the Twitter API expects?
I wrote some code to post tweets in C#. One of the things that tripped me up was the url-encoding of data since there seemed to be many options:
var input = "Hello Ladies + Gentlemen, a signed OAuth request!";
var expected =…

Danny Tuppeny
- 40,147
- 24
- 151
- 275
2
votes
2 answers
URI encode not encoding URLs (turning latter parts of https:// into encoded characters)
Here's my output:
URI.encode("http://localhost:3000/membership?referer_invite_code=a03478&fee=UVYA")
=> "http://localhost:3000/membership?referer_invite_code=a03478&fee=UVYA"
But I need output to be:
=> "http%3A%2F%2Flocalhost%3A3000..."
The…

james
- 3,989
- 8
- 47
- 102
2
votes
2 answers
CodeIgniter throwing "The URI you submitted has disallowed characters..." and I can't see what's causing it
I'm getting this error from CodeIgniter:
"The URI you submitted has disallowed characters. ..."
On this JSON string:
{"from":"feedback@myapp.com","to":"support@myapp.com","cc":"myadmin@ myapp.com, myfellowadmin@myapp.com","subject":"FROM APP: User…

KCL
- 138
- 1
- 12
2
votes
1 answer
Ruby: Convert
to newline URI encode
I want to share sometext on whatsapp so I'm converting html to text otherwise it displays all the tags.
Currently I'm using strip_tags to remove tags but that also removes breaks from the text. How do I convert html to text and convert breaks to…

lightsaber
- 1,481
- 18
- 37
2
votes
1 answer
inconsistent window.history.pushState uri encoding
Take url address www.somesite.com/@user1
If I click on a good old fashioned

Rich Tier
- 9,021
- 10
- 48
- 71
2
votes
2 answers
Umbraco richtext is not saved after upgrading to 4.11
I upgraded from Umbraco 4.10 to 4.11 and now when I save a document, all fields are saved except for richtext fields where everything is deleted. Anything I type in richtext editor is lost after saving.
I've had similar problems before with other…

nima
- 6,566
- 4
- 45
- 57
2
votes
0 answers
IE9 uri encoding issue
I am passing a parameter through the query string to a a php page.
The parameter is sent like
str=WNQwMGfRxgozriA%2FVvxwuMFIAAD1%2BHXmFjOSUa4tBGM%3D
All I'm having the php page do is echo the value of str.
In FF/chrome/IE8 i get the value…

KDV
- 730
- 1
- 6
- 12
1
vote
2 answers
Tomcat URIEncoding="UTF-8" in eclipse tomcat setting page
I have eclipse neon which is working correctly with Apache Tomcat 7, and now I want to set URIEncoding="UTF-8" for tomcat's connector. But each time eclipse publishes the project, it will rewrite the server.xml file and deletes my configurations.
I…

Naeem Baghi
- 811
- 2
- 14
- 29
1
vote
1 answer
"%" is getting URI decoded while everyhting else not
I have a strange UI5 problem. I create a string from a control's binding context which looks like:
Entity('Element%3AInfo%2CID')
Just for info, it looks like this decoded: Entity('Element:Info,ID')
However, I get this String from the following…

OddDev
- 3,644
- 5
- 30
- 53