URLdecode

Avon

Member
Licensed User
Longtime User
Some of the data which I'm retrieving from a webpage contains URL-encoded constants (like &). It looks like a job for URLdecode (StringUtils method), but it doesn't work, not for me anyway:

code:
B4X:
dim su as StringUtils
label1.Text = su.DecodeUrl( sTitle, "UTF16") & " " & sdate
same result with 1) "UTF-16" 2)"Unicode".

expected result:
MARKS & SPENCER

actual result:
MARKS & SPENCER
 

Avon

Member
Licensed User
Longtime User
You're right of course. Percentages, ampersands, all sqiggly stuff. I'll code it.
Thanks agraham!
 
Upvote 0
Top