We are using Server.URLEncode to change an SKU with a forward slash from BDF5555/45 to BD5555%2F45 in our Href on a button.
When a person clicks on the button the page navigates to another module which has Request.QueryString but DNN is changing the URL.
How can I get the variable decodeprodCode to include the &45 as BDF5555/45?Perhaps DNN is rewriting the URL?
I have a couple of encoded strings with different encoding types for example:
Zubeh%C3%B6r, which both need to be decoded to
Question 1: How can I decode the second type of string with a PHP function?
Question 2: How can I make a PHP function where I can pass in a text with these two encoding types and the function automatically decodes the text correctly?
I am working on a project that I need to pass a string as a url variable. The issue I am haveing is when the strings are being pulled from a database, and contain characters that have to be encoded. When decoding on the other side they drop off after characters like & and +
I can get it to encode and decode properly if I set the string manually... is there a fix or am I doing something wrong.
So for instance If on my encoding page I enter this:
joblist.list_desc is pulling the desc from a cfc that gets the description of a job type and lets say that the description its pulling is "Excavation & Plumbing"
And My recieving page is set up like this:
<cfoutput> <table> <tr> <td width="60%" valign="top" class="subpagetitle"> #decodeFromUrl(url.desc)# </td> </tr> </table></cfoutput>
It just outputs "Excavation "
Now if I set the string manually like this:
Then the url will decode that and out put it like it should be. "Excavation & Plumbing"
If I have it pull a description with out the & in the description it works fine. It will encode and decode spaces, - _ '" all kinds of symbols... I only have this issue when someone has saved a description with the + and & and only when it pulls from the database.
I am using AspNetCore 2.1.I encountered an issue to deserialize a portion of URL:http://localhost:55381/api/Umbrellas/cc1892b0-b790-4698-ae3e-07bee39fd29b/ModeOperationnelWithAppliedEvents?dateDeValeur=2018-09-01T02:00:00.000+02:00
the part "2018-09-01T02:00:00.000+02:00" is expected to be deserialized as DateTimeOffset. But it failed to do it. A default(DateTimeOffset) is returned.
If I encode to this format "2018-09-01T02%3A00%3A00.000%2B02%3A00" => correctly deserialized.
When it is enclosed in URL, that does not work.In the contrarily, when the same format is enclosed in the body of message, it is correctly deserialized.
According to RFC3986 both colon ':' and '+' is legal char in a URL. Does anyone have an idea on this?
I am trying to decode this URL string using PHP's urldecode function:
This is supposed to output...
<R201810579707> <20180828> <20180912> <1033.00> <Y> <0.00!NA>
...but instead is ouptutting this
<20180828> <20180912> <1033.00> <0.00!NA>
I've tested the string in a php online decoder with great success, but can't seem to do this operation server side. Any ideas?