http://bugs.winehq.org/show_bug.cgi?id=6801
--- Comment #36 from Tefnet developers developers@tefnet.pl 2008-04-13 05:05:23 --- (In reply to comment #34)
The encoding is very wierd - it looks like the url is passed in as latin-1 but the browser expects utf8... I don't think I understand this.
Apart from entity decoding which can be done by reusing Robert's patch, we should also use "precent encoding" in UrlEscape (dlls/shlwapi/url.c)
http://www.w3.org/International/O-URL-code.html
There is flag URL_ESCAPE_PERCENT in this function but i don't think it does what it should do. Moreover, native UrlEscape might have the same problem?
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1954721&SiteID=1
I've tried to trace where in native dlls correct escaping occurs but I couldn't find it. I know that with native hhctrl.ocx there is the same problem with accented urls... so percent escaping has to be done later.
Could you check how UrlEscape with URL_ESCAPE_PERCENT behaves in Windows? (I don't have Windows system with C compiler so I couldn't do it by myself :/)
I've rewrite example in Java (from W3 page) to C... could you check if it does proper url escaping (it works for me)? I think it can be used to put somewhere in wine code, but we have to figure out first where we should do it :)