Delphi2006中有这样一个单元:HTTPApp,里面有这样的函数:function HTTPEncode(const AStr: string): string;function HTTPDecode(const AStr: string): string;下面是这两个函数的原代码,如果你的Delphi版本比较低,可以使用下面的代码function HTTPDecode(const AStr: String): String;varSp, Rp, Cp: PChar;S: String;beginSetLength(Result, Length(AStr));Sp := PC...
|