🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #2512

Using URLEncode

#2512
From: Hamid
Date: Mon, 10 Apr 2006 11:07
10 lines
1159 bytes
How can I use the URLEncode method of TIdURI component? 
I am using the method like this:

AnsiString string;
 
TIdURI *idUri = new TIdURI("");
string = idUri->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?
Technical Details
Message-ID: <443a3c6c$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news2.volia.net!newspeer1.de.telia.net!newspeer4.de.telia.net!de.telia.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,b5b9744a5969042d,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Hamid" <hrz_mir@Yahoo.com>
Sender: "Hamid" <hrz_mir@Yahoo.com>
Reply-To: "Hamid" <hrz_mir@Yahoo.com>
Subject: Using URLEncode
Newsgroups: borland.public.cppbuilder.internet.socket
X-User-Info: 82.99.219.37     
X-Forwarded-For: 172.16.1.5
NNTP-Posting-Host: 207.105.83.66
Message-ID: <443a3c6c$1@newsgroups.borland.com>
Date: 10 Apr 2006 04:07:24 -0700
X-Trace: newsgroups.borland.com 1144667244 207.105.83.66 (10 Apr 2006 04:07:24 -0700)
Lines: 10
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news2.volia.net!newspeer1.de.telia.net!newspeer4.de.telia.net!de.telia.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail