I am sending to the browser a request to save a file with the file name.
The file name might include spaces, so i replace all spaces with %20.
Internet Explorer and Chrome transfers %20 back to spaces, but Firefox does not to that. why?
Is there a way make all browsers show the space?
This is my code:
String codedName = new String(URLE...
Hi
I am producing a google calendar query string that requires an atom fomatted date.
I am using php 5.1.6, and date(DATE_ATOM) to produce the correctly formatted current date. So, for instance, in the unencoded url part of the query has:
start-max=2010-09-02T10:25:58+01:00
I need to rawurlencode this and it becomes
start-max%3D20...
Hi
Just recently I stumble upon a strange url encoding problem.
I'm trying to encode (using php urlencode) this test title:
Quiz: Are The'se Com!!ments Ab_+=&out the 2001 iPod or 2010 iPad?
and then submit it to twitter using following url (user clicks 'share this content' link on my website):
http://www.twitter.com/home/?status=htt...
I'm having problems encoding a string so I can place a variable into a link. I'm sure this is really simple, but i had trouble turning anything up.
$("a.inquiry").attr("href", "/inquiry/6933/text=" + encodeURI("text o"));
This doesn't work.
encodeURI("text o")
Still returns:
link/text o
Instead of:
link/text%20
Also tried:
...
I've got some code that looks similar to this:
<h:outputLink value="#{bean.url}" />
But the output contains an apostrophe in the link href which is not URL encoded.
Am I doing something wrong or is this normal behaviour for outputLink? Thanks in advance.
(JBoss 4.2, Java 1.6)
...
I've been working on a script that can be used for an internal wiki, that will remove the properties for a user who is inactive. I believe I'm almost there but having a problem with the api.
I think I need to use urlencode on the $delete path BUT only for the @ in the email address and # in the property. I know how to use urlencode for...
I am working on a browser plugin that takes the URL of the current page or any selected link as a parameter and send it to our server.
When characters of the basic latin alphabet are present in the url (like http://en.wikipedia.org/wiki/Vehicle), the plugin works fine. However, when the URL contains characters from another alphabet such ...
For many of my forms, the user submits to a particular URL and if there are errors, the script redirects back to the original page with the errors in the URL. That page then reads the URL parameters and displays the errors to the user like so:
http://localhost:8080/test/?signup_error_email=no_at_symbol
Works great. But sometimes the...
I am planning a URL rewriter/encoder (maybe rewriter is a better term). The main purpose is to hide the exact URL from the client, since if he is smart enough, he can figure out how to mess up the application.
The URL encoder would be an injective function f(x) = y. The decoder would be the inverse function of f, say g such that g(y) =...
Each parameter in a URL can have multiple values. How can I separate them? Here's an example:
http://www.example.com/search?queries=cars,phones
So I want to search for 2 different things: cars and phones (this is just a contrived example). The problem is the separator, a comma. A user could enter a comma in the search form as part...
I have created an ASP.NET class.
In that class i would like to use the Server.UrlEncode.
Why intellisense is not helping me at all and instead of Server.UrlEncode it displays the HttpServerUtility?
I have already a reference to system.web
...
We have a PHP app with a dynamic URL scheme which requires characters to be percent-encoded, even "unreserved characters" like parentheses or aphostrophes which aren't actually required to be encoded. URLs which the app deems to be encoded the "wrong" way are canonicalized and then redirected to the "right" encoding.
But Google and othe...
Below is my .htaccess file for this particular articles folder. My problem is that these urls both split the $_GET variable when received by the php script.
/food-and-diet/articles/test-&-cake.html
/food-and-diet/articles/test-%26-cake.html
Both of these urls create this $_GET array:
Array ( [article] => test- [-cake] => [folder] =>...
Hi I am making a chrome extension. Where I save a page to the database as a string and then open it later as a dataURI scheme like:
d = 'data:text/html;charset=utf-8'+encodeURI('HTML TEXT')
location.reload(d);
The problem with this is that the page, say its name is http://X/, in which I executed the above command loses the javascript ...
So, i'm a complete noob to C#. I have a url that i need to encode in order to use urlencoded posts.
Issue is, every resource i've found says to use System.Web.HttpServerUtility.UrlEncode. Alternatively, I have seen resources telling me to use System.Web.Util.HttpEncoder().
I have added a reference to system.web, but am getting the "doe...
Hello,
I am very confused about the following:
echo("<a href='http://".urlencode("www.test.com/test.php?x=1&y=2")."'>test</a><br>");
echo("<a href='http://"."www.test.com/test.php?x=1&y=2"."'>test</a>");
The first link gets a trailing slash added (that's causing me problems)
The second link does not.
...
I am trying to write a windows client application that calls a web site for data. To keep the install to a minimum I am trying only use dlls in the .NET Framework Client Profile. Trouble is that I need to UrlEncode some parameters, is there an easy way to do this without importing System.Web.dll which is not part of the Client Pofile?
...
So I'm a beginner to all of this. I'm attempting to teach myself how to properly use CURL, and dabble a bit in API calls (don't worry, this question only relates to using CURL).
Now my original code worked just fine - I structured the request using urlencode, and the vast majority of requests leaded to the responses I was looking for. ...
Hi all,
I have a problem in JS encoding and then decoding in the C# server.
I use javascript encode() function - but when i have special chars like +, the C# has httputility.urldecode() -> and it converts it as if it was SPACE char.
What is the best way to communicate JS encoding and C# decoding?
I have <a href='javascript:foo(escape(...
Hi, we submit a explicit encoded string as a POST hidden field. But on the server side (different domain with C++) the String received is double encoded. My understanding is that the browser will encode /decode automatically. But why it is not the case in my programm?
Thanks for help.
...