Is not wxURI supposed to encode the URL?
When I provide an URL as "http://user:pass@server/" with the user containing a "@", it fails to parse the elements (eg. here wxURI::GetPassword doesn't return the pass because wxURI considers the first "@" as being the separation between user:pass pair and the server).
So, I tried something like this, expecting to obtain an explicitely encoded URL after wxURI::BuildURI, but it doesn't seem to be the case... Or I missed something somewhere °O°
Code: Select all
wxString strUrl("http://user@account:pass@server/");
wxURI uri(strUrl);
wxString strEncodedUrl = uri.BuildURI(); // "@" did not become "%40" as I expected
EDIT: What I expected seems to be confirmed here: viewtopic.php?t=9233, so at this step, I don't know...