invalid http_client when using ansi characters

Oct 13, 2016 at 10:15 PM
I build a console application to download files with C++ REST SDK
I assign the http_client to a url as follows:
http_client client = utility::conversions::to_string_t(pwszUri);
with pwszUri of type const wchar_t*
All goes well as long as I don't use ansi in the pwszUri string. When I use, for instance,ë (note the last character: e with diaeresis) as a url the http_client becomes invalid. I can't find out why???
I'm using VS2013. Constructed a console project, with a wmain starting point.
Oct 16, 2016 at 5:45 PM
Problem is solved after reading the relevant RFC. In an URL an ANSI char has to be encoded as a percent followed by a hex number. I hope i'm expressing myself clearly enough...
e.g. the stringë becomes, wich is a valid string for an URL