B4X
B4X
URL Encoding and Decoding
Demonstrates URL encoding/decoding using the HTTP convenience methods.Chilkat B4X Downloads
Dim http As ChilkatHttp
http.Initialize("http")
Dim s As String = "Hello World! 100% sure."
Dim encoded As String = http.UrlEncode(s)
Log("URL encoded: " & encoded)
' Space → %20
' ! → %21
' % → %25
Dim decoded As String = http.UrlDecode(encoded)
Log("URL decoded: " & decoded)
' Output:
' URL encoded: Hello%20World%21%20100%25%20sure.
' URL decoded: Hello World! 100% sure.