iOS Question launching safari from ios app issue


Licensed User
Longtime User
Hello. I am trying to open the browser from within an ios app using:

App.OpenURL("" & reg_key & "&password=" & pass_word)

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?