且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Delphi:用于将字符串转换为可用于url的字符串的函数

更新时间:2023-02-03 09:04:07

您可以将Indy中的IdURI单元添加到use子句中,并使用TIdURI.URLEncode。 ()编码URL的方法,以及TIdURI.Decode()将编码的URL解码为普通字符串。

You can add IdURI unit from Indy to your uses clause, and use TIdURI.URLEncode() method to encode a URL, and TIdURI.Decode() to decode an encoded URL to a normal string.