B4R Library rURL - UrlEncode and UrlDecode

This library was developed by @Erel and me. He lead the way (as always) and I followed. It allows you to UrlEncode and UrlDecode strings in order to use them in URLs. Here is how to use it:

B4X:
    Dim sToURLEncode As String = "Αυτή είναι μία πρόταση στα Ελληνικά. Για να δούμε πόσο καλά θα την κωδικοποιήσει"
    Dim bEnc(sToURLEncode.Length * 3) As Byte
    URL.Encode(sToURLEncode, bEnc)
    Log(bEnc)
    Dim bDec(sToURLEncode.Length * 3) As Byte
    URL.Decode(bEnc, bDec)
    Log(bDec)
 

Attachments

  • rURL.b4xlib
    1 KB · Views: 228
Last edited:
Top