13,826
社区成员
发帖
与我相关
我的任务
分享
#include <IdURI.hpp>
#pragma link "IndySystem.lib"
void __fastcall TForm1::Button1Click(TObject *Sender)
{
String strText = "中文测试";
String strEncode = TIdURI::PathEncode(strText);
ShowMessage(strEncode);
ShowMessage(TIdURI::URLDecode(strEncode));
}
#include <IdGlobal.hpp>
#pragma link "indy.lib"
void __fastcall TForm1::Button1Click(TObject *Sender)
{
String strText = "中文测试";
String strEncode = URLEncode(strText);
ShowMessage(strEncode);
ShowMessage(URLDecode(strEncode));
}