idhttp请求网址中的中文输入

str:=AnsiToUtf8(用户名edit.Text);
   str:=HTTPEncode(str);
   str:=self.IdHTTP1.Get('http://127.0.0.1:8081/datasnap/rest/tprjmis/web_login/'+httpencode(AnsiToUtf8(用户名edit.Text))+'/'+ HTTPEncode(AnsiToUtf8(密码edit.text)));

posted @ 2014-09-09 10:44  LAOS  阅读(181)  评论(0编辑  收藏  举报