How to encode special character URLs in a URL

I have a url that contains "!", "@", "#", And the server seems to choke when they don't have a url.

Now Rebol3 does not seem to call it themselves.

>> url: http://test/abc/#def/ghi
== http://test/abc/#def/ghi

If I do this manually, "%" is encoded, but:

>> replace url "#" "%23"
== http://test/abc/%2523def/ghi

Any idea on encoding characters that are not normally encoded?

+4
source share
1 answer

I know that you are specifically asking how to transfer data in percent format. However, faced with the same problem as yours, I found a way to decode the percent encoded string, which also turned out to be useful.

, . dehex rebol2 rebol3, .

0

All Articles