Proposal to a fix on bug in UrlDecode in OverbyteIcsUrl.pas and
OverbyteIcsHttpSrv.pas.
When calling the function like this:
Memo2->Text = UrlDecode("Ã...ge",CP_ACP,false); // Ã...ge is UTF8encoding of Åge
The resulting text in Memo2 is "Ã&ge" and is impossible to UTF8-dekode back to
the original text.
The fix is to change this:
function UrlDecode(const S : String; SrcCodePage: Cardinal = CP_ACP;
DetectUtf8: Boolean = TRUE) : String;
To this:
function UrlDecode(const S : AnsiString; SrcCodePage: Cardinal = CP_ACP;
DetectUtf8: Boolean = TRUE) : String;
Anyone have any comment on this fix?
Regards Bjørnar
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be