Hi Julian,
I have been trying couple of things with juce::webbrowsercomponent. If I try to open a url containing braces on mac, the webbrowsercomponent doesn’t display the page
http://www.google.co.in/search?q={vishvesh}
Well, it’s just passing the string straight through to the browser component. And I don’t think braces are actually legal in a URL, are they?
Safari is probably being clever and trying to fix any illegal characters before it sends the string, but if I did that, it’d break existing code by double-encoding already encoded URLs.
The URL class has encoding methods that you can use to tidy it up before you send it.
no, no, no… Like I said above, the goToURL method expects the string to already be encoded. Adding an encoding step there would double-encode it, and break any existing code that uses it!
The idea is that you can use the URL class to build the string that you pass into this function, and that’ll take care of all the messy stuff for you.