修改 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调用参数中出现中文乱码的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did98486