Article View: borland.public.cppbuilder.internet.socket
Article #2515Re: Using URLEncode
From: Remy Lebeau (TeamB)
Date: Mon, 10 Apr 2006 18:25
Date: Mon, 10 Apr 2006 18:25
24 lines
1651 bytes
1651 bytes
"Hamid" <hrz_mir@Yahoo.com> wrote in message
news:443a3c6c$1@newsgroups.borland.com...
> TIdURI *idUri = new TIdURI("");
> string = idUri->URLEncode(__classid(TIdURI), "http://domain.com?text=text1
+ text2");
URLEncode is a static method, you do not need to create an instance of the
class in order to use it:
string = TIdURI::URLEncode(__classid(TIdURI),
"http://domain.com?text=text1 + text2");
> But it returns the same character as the input string. It does not encode
it. Why?
Which version of Indy are you actually using? The debate over whether
spaces are encoded or not has been re-visited several times before. Some
versions of Indy did encode spaces. Some did not. The current snapshot of
Indy 9 does.
Gambit
Technical Details
Message-ID:
<443aa3af$2@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<443a3c6c$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,b5b9744a5969042d X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <443a3c6c$1@newsgroups.borland.com> Subject: Re: Using URLEncode Date: Mon, 10 Apr 2006 11:25:47 -0700 Lines: 26 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <443aa3af$2@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1144693679 68.69.17.41 (10 Apr 2006 11:27:59 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail