我有一个TidHttpServer监听端口8844下面的代码:可以TidHttpServer(Delphi XE2)处理urlencoded字符吗?
procedure TForm1.IdHTTPServer1CommandGet(AContext: TIdContext;
ARequestInfo: TIdHTTPRequestInfo; AResponseInfo: TIdHTTPResponseInfo);
begin
if ARequestInfo.Document <> '/favicon.ico' then
begin
Memo1.Text := ARequestInfo.Params.Text;
end;
end;
这是用Delphi XE2编译。当我浏览到
http://localhost:8844/document?Value=%F6 <-- %F6 is the encoded value for ö
...我得到的结果是:
value=?
如果我编译使用德尔福2007年的应用程序,我得到以下结果
value=ö
这是一个错误在Indy中,我错过了什么?