Otherwise, the webBrowserComponent’ll not load it and display nothing.
This issue only happens on OSX (10.12).
I used 2 static methods which come from Projucer’s source code to solve the problem. These 2 methods are: addEscapeChars() and writeEscapeChars(). Code example:
The functions you’re using aren’t in the projucer, they’re just part of the C++ tokeniser, but I don’t recommend using them for URLs because they’re designed for a totally different purpose and some encodings may differ!
I don’t know, Jules I found those 2 useful methods in line 550/656 of jucer_UTF8Component.h (Projucer/Utility).
There’re exceptions. (again? :D) In my case, no need to play with any URL. I just need webBrowser goto a string (local html-file path) and display it correctly I’m sure it’s a bad design though