Hi all.
I'm using StringUtils EncodeURL both in B4A and B4I.
It returns me different result for encoding the same string
The same code for both b4a and b4i
B4A returns -
The problem is that I'm getting 404 error when I'm trying to download the image by using B4A encoded string but it's Ok for B4I
Why the same code gives me different results?
Thanks
I'm using StringUtils EncodeURL both in B4A and B4I.
It returns me different result for encoding the same string
The same code for both b4a and b4i
B4X:
Sub Button1_Click
Try
Dim str As String,strEnc As String
Dim su As StringUtils
str="12 - 1.jpg"
strEnc=su.EncodeUrl(str,"UTF-8")
Log(str & TAB & strEnc)
Catch
Log("Button1_Click " & Me & LastException)
End Try
End Sub
B4A returns -
B4I returns -12 - 1.jpg 12+-+1.jpg
12 - 1.jpg 12%20-%201.jpg
The problem is that I'm getting 404 error when I'm trying to download the image by using B4A encoded string but it's Ok for B4I
Why the same code gives me different results?
Thanks