delphi中httpencode使用注意事项

一、uses
HTTPApp
二、使用前要用UTF8Encode转换成utf-8编码
HTTPEncode(UTF8Encode(Text));
不然和标准的url_encode()编码结果不一致,查询结果自然不是预期的。可以通用浏览器地址来查看。
解码后要用UTF8Decode做解码后处理:
UTF8Decode(httpdecode(Text))
不然解码后还是一堆乱码。

原文地址:https://www.cnblogs.com/Thenext/p/13235746.html