好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

xe2升级到xe6后DataSnapRestPOST调用参数中出现中文乱码

修改 indy控件 IdCustomHTTPServer.pas procedure TIdHTTPRequestInfo.DecodeAndSetParams(const AValue: String); 方法中 新增一行 if CharSet='' then CharSet:='UTF-8'; LEncoding := CharsetToEncoding(CharSet); 或修改 indy控件 IdHTTPHeaderInfo.pas

修改 indy控件 IdCustomHTTPServer.pas

procedure TIdHTTPRequestInfo.DecodeAndSetParams(const AValue: String);

方法中 新增一行

if CharSet='' then CharSet:='UTF-8';
LEncoding := CharsetToEncoding(CharSet);

或修改 indy控件 IdHTTPHeaderInfo.pas 文件

替换里面FCharSet=‘’ 为 FCharSet=‘UTF-8’

查看更多关于xe2升级到xe6后DataSnapRestPOST调用参数中出现中文乱码的详细内容...

  阅读:44次