I am trying to build and launch a url, but it seems to mysteriously morph somewhere along the way.
The portion of the script shows:
var url = "https://www.google.com/search?q=site:imdb.com" + encodeURIComponent(" " + tt);
DOpus.Output(tt);
DOpus.Output(url);
cmd.RunCommand(url);
The console correctly outputs:
[quote]Die fetten Jahre sind vorbei
google.com/search?q=site:im ... d%20vorbei
[/quote]
If I manually paste the second line of the console in the Firefox address bar, i.e.
https://www.google.com/search?q=site:imdb.com%20Die%20fetten%20Jahre%20sind%20vorbei
it works perfectly.
But in the browser, the url displayed is:
https://www.google.com/search?q=site:imdb.com0Die0fetten0Jahre0sind0vorbei
It's as though the %20 spaces morph into zeroes.
If I try to bypass the %20 completely, only the left part of the url makes it:
Code => var url = "https://www.google.com/search?q=site:imdb.com " + tt.replace(/ /g,"-");
Console=> https://www.google.com/search?q=site:imdb.com Die-fetten-Jahre-sind-vorbei
Browser=> https://www.google.com/search?q=site:imdb.com
Would anyone happen to have insights on this?