Board index » cppbuilder » URLEncode

URLEncode


2006-01-28 09:57:52 PM
cppbuilder77
Hi, I would like to use the URLEncode function which is able to encode utf-8 characters. Seemingly the function of URLEncode does not work properly. Would you please let me know how I can do it?
 
 

Re:URLEncode

"Hamid" < XXXX@XXXXX.COM >wrote in message
Quote
Hi, I would like to use the URLEncode function which is
able to encode utf-8 characters.
Indy does not support UTF-8 at this time.
Quote
Seemingly the function of URLEncode does not work properly.
Can you be more specific? Just saying it does not work says nothing about
the actual problem you are having.
Gambit
 

Re:URLEncode

How can I encode a uri using a TIdURI class? The C++Builder version of the URLEncode function wants a Metaclass object that I can not understand what it is?
 

{smallsort}

Re:URLEncode

"Hamid" < XXXX@XXXXX.COM >wrote in message
Quote
How can I encode a uri using a TIdURI class? The C++Builder
version of the URLEncode function wants a Metaclass object that
I can not understand what it is?
You need to use the __classid compiler keyword:
AnsiString url = uri->URLEncode(__classid(TIdURI), "the uri here");
Gambit