where reg_key and pass_word are parameters that are user-entered from within the app.
it works fine until I discovered that when reg_key and/or pass_word contained a space, the safari wouldn't launch at all. I tried with the equivalent command in an android app (StartActivity(launch_browser.OpenBrowser..) with spaces in parameters and using several browsers like chrome, firefox and opera and it worked without any issue on all of them. Any suggestion?
Please use [code]code here...[/code] tags when posting code.
Try this:
B4X:
Dim su As StringUtils
App.OpenURL($"https://www.forexample.com/calibration11.html?login=${su.EncodeUrl(reg_key, "utf8")}&password=${su.EncodeUrl(pass_word, "utf8")}"$)