Hi RTT
Yes I use UrlDecode from OverbyteIcsUrl.hpp with defaults SrcCodePage
and DetectUtf8. Alternative, I not found other, was include Indy
component but using ICS I think isn't unnecessary.
I will check using no default parameters.
Thanks again
Xavi
Al 29/04/2010 03:16, En/na RTT ha escrit:
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
Hi RTT
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
using
asStr = UTF8Decode( usStr );
or
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
Xavi
--
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
Se certifico que el correo entrante no contiene virus.
Comprobada por AVG - www.avg.es
Version: 9.0.814 / Base de datos de virus: 271.1.1/2840 - Fecha de la version:
04/28/10 08:27:00
--
Xavier Mor-Mur
--
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