delphi调用c#写的webservice中文出现乱码的问题

解决方法:HTTPRIO1的属性---HttpWebNode--UseUtf8InHeader设置为true

代码片断:

function TLoginManager.Get_LoginManagerSoap: ILoginManagerSoap;
const
  defSvc='LoginManager';
  defPrt='LoginManagerSoap';
var
  RIO: THTTPRIO;
begin
  Result:= nil;
  RIO:= THTTPRIO.Create(nil);
  try
    Result:=(RIO as ILoginManagerSoap);
    RIO.WSDLLocation := SemsClientApp.Config.Server.URL+'/WebService/LoginManager.asmx?wsdl';
    RIO.Service:=defSvc;
    RIO.Port:=defPrt;
    RIO.HTTPWebNode.UseUTF8InHeader:=True;
  finally
    if (Result=nil) then RIO.Free;
  end;
end;

原文地址:https://www.cnblogs.com/MaxWoods/p/1258039.html