Hi everyone,
I use B4J 5.9 and I have a problem about decodeurl.
I get data from the client application.
If text_data have % for example : 10% Off
And I use DecodeUrl to decode the text_data.
I get error :
How to fix this error ?
Regards,
PMT.
I use B4J 5.9 and I have a problem about decodeurl.
I get data from the client application.
B4X:
Dim post_data() As Byte = Bit.InputStreamToBytes(in)
Dim text_data As String = BytesToString(post_data, 0, data.Length, "UTF8") '
If text_data have % for example : 10% Off
And I use DecodeUrl to decode the text_data.
B4X:
Dim su As StringUtils
Log("text_data:"&su.DecodeUrl(text_data,"utf8"))
I get error :
B4X:
(IllegalArgumentException) java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in escape (%) pattern - For input string: " O"
How to fix this error ?
Regards,
PMT.