Bjørnar,

> When calling the function like this:
> Memo2->Text = UrlDecode("Ã...ge",CP_ACP,false); // Ã...ge is UTF8encoding of 
> Åge 

"Ã...ge" is not a valid URL encoded string.

"Åge" URL encoded was:

"%C3%85ge"  //UTF-8
"%C5ge"          //Windows-1252

Try this:
{code}
var
   Str: string;
begin
   Str := 'Åge';
   Str := UrlEncode(Str, CP_UTF8);
   Caption := UrlDecode(Str, CP_UTF8, False);
end;
{code}



-- 
Arno Garrels


--
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

Reply via email to