Wednesday 15 June 2011

urlencode - How to url-encode special characters in a url -


I have a URL in which "!", "@", "#" And the server starts to throttle when These are not Urlencoded.

Now Rebol3 does not find them myself urlencode.

  & gt; & Gt; Url: http: // test / abc / # def / ghi == http: // test / abc / # def / gh  

If I do it manually, "% "Gets encoded, though:

  & gt; & Gt; Url "#" Instead of "% 23" == http: // test / abc /% 2523def / ghi  

Any ideas about encoding the characters, which are usually Is not encoded?

I know that you are specifically asking how to percent-cite data though , While facing the problem like you, I have found out how to decode a percent-encoded string, which I find useful.

Just you need a percent-decode function, so rebol2 and Rebol3, because it's decoding job natively.


No comments:

Post a Comment