Hi Xavier,
The UTF8Decode is being performed automatically probably because you are using the UrlDecode function from OverbyteIcsHttpSrv. If you check its definition,

function UrlDecode(const Url: string; SrcCodePage: LongWord = CP_ACP; DetectUtf8: Boolean = TRUE): string;

there is a, default set to true, parameter, DetectUtf8, to define if the auto-detection, and decoding, of UTF8 encoded strings must be made automatically by the function after the URLDecode conversion


Thanks for your tips. Finally I get it work but I should write code a bit different

String usStr; (or UnicodeString usStr;)
AnsiString asStr;

usStr = URLDEcode( "Sin%20t%C3%ADtulo%201_html_m5b7e3440.jpg" );
asStr = usStr; <--- Compiler introduce required conversion code

     asStr = UTF8Decode( usStr );
asSTR = UTF8Decode( URLDEcode( "Sin%20t%C3%ADtulo%201_html_m5b7e3440.jpg" ) );

give asStr = NULL
I think D2009 and BC2009 works diferent when doing inline automatic conversions.

Many thanks for all


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