iOS Question encodeurl with stringutils

tufanv

Expert
Licensed User
Longtime User
Hello,

I want to encodeurl this string to share a text with whatsapp : For example : "Avro / TL"
The correct encoded string is : "Avro+%2F+TL" but I use the below code but get :

"Avro+%2F+TL" instead of the above correct encoded url:

B4X:
    txt="Avro / TL"
    txt=su.EncodeUrl(txt,"UTF8")
    LogColor(txt,Colors.Red)
    Dim url As String = "whatsapp://send?text=" & txt

what am i missing here ?
 
Top