How can I urlencode a string?

Hi Everyone,

I’m writing an app that is going to use Tor to transfer its data. I’m going to use a Python based helper app to do the interaction with Tor (which I know how to do). The problem is how to urlencode the strings for the POST request.

If I were using HTTPSocket, I’d just define a new dictionary and them add values to it, finally setting my form parameters on the HTTPSocket. But I can’t do that here. I need to manually urlencode the values.

What is the best way to do this?

http://documentation.xojo.com/index.php/EncodeURLComponent