//-----------------------------------------------
//16进制字符转字符串
//-----------------------------------------------
function hextostring(str: string): string;
var
s,t:string;
i,j:integer;
p:pchar;
begin
s:='';
i:=1;
while i< length(str) do begin
t:=str[i]+str[i+1];
s:=s+chr(hextoint(t));
i:=i+2;
end;
result:=s;
end;
来源:CSDN
作者:qq_19984615
链接:https://blog.csdn.net/qq_19984615/article/details/103904115