B4J Question '+' character being changed to space over HTTPS connection

Jmu5667

Well-Known Member
Licensed User
Longtime User
Hello

I have a string of data that is transmitted over https (B4A->B4J). Within the string are telelphone numbers that are prefixed with '+' symbol, e.g +353871234567. When the data is received the '+' has been chaned to a space (0x20).

How can I prevent this. Is there a mothod that can be called to preserve the data ?

Regards

John.
 

Hamied Abou Hulaikah

Well-Known Member
Licensed User
Longtime User
If you put data as url parameters, it will be converted to space %20, use urlencode/urldecode to overcome.
If data sent as post, + will not changed.
 
Upvote 0

Jmu5667

Well-Known Member
Licensed User
Longtime User
If you put data as url parameters, it will be converted to space %20, use urlencode/urldecode to overcome.
If data sent as post, + will not changed.
I will check my post method which I an currently using, and let you know the result. It's gonna be a live production update so I need to be careful :)
 
Upvote 0
Top