Sample code for 30+ languages & platforms
Xojo Plugin

URL Encoding and Decoding

Demonstrates URL encoding/decoding using the HTTP convenience methods.

Chilkat Xojo Plugin Downloads

Xojo Plugin
Dim http As New Chilkat.Http

Dim s As String
s = "Hello World! 100% sure."

Dim encoded As String
encoded = http.UrlEncode(s)
System.DebugLog("URL encoded: " + encoded)

// Space → %20
// ! → %21
// % → %25

Dim decoded As String
decoded = http.UrlDecode(encoded)
System.DebugLog("URL decoded: " + decoded)

// Output:

// URL encoded: Hello%20World%21%20100%25%20sure.
// URL decoded: Hello World! 100% sure.