Dear Al

# is used by Delphi to escape special character codes (i.e. #13#10 =
CrLf)
% is used by URLs to escape special character codes (i.e. %20 = space)

# uses decimal
% uses hex 

Don't ask me why they have to use a different base, I blame the Unix
programmers :p

Therefore

#20 = Character number 20 in decimal (14 in hex)
%20 = Character number 20 in hex (32 in decimal)

Does that make sense?

Stephen

> -----Original Message-----
> From: Alistair George [mailto:[EMAIL PROTECTED] 
> Sent: Monday, 4 August 2003 10:44 a.m.
> To: Multiple recipients of list delphi
> Subject: [DUG]: Back4WinXP(c)BugReport
> 
> 
> I tried the following:
>   for i:=0 to Length(mailstring) do
>   if mailstring[i]=' ' then mailstring[i]:=#20;
> 
> But as you see the subject has 'funnies' in it where the 
> spaces are, and the text gets converted as follows:
> SystemInformation:
> 
> --------------------------------------------------------------
> -------------
>     New Zealand Delphi Users group - Delphi List - 
> [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED] 
> with body of "unsubscribe delphi"
> Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
> 
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to