调用方法:
clientdataset.Params.ParamValues['fieldname']:= setParams('中文真头大');
保证没问题
function setParams(strParams:string):string;
var
i,j:integer;
begin
j:=length(AnsiString(strParams))-length(WideString(strParams));
if j>0 then
begin
for i:=0 to jdo
begin
strParams:=strParams+' ';
end;
end;
result:=strParams;
end;