Delphi Unicode转中文

function UniCode2GB(S : String):String;
Var I: Integer;
begin
I := Length(S);
while I >=4 do begin
try
Result :=WideChar(StrToInt('$'+S[I-3]+S[I-2]+S[I-1]+S[I]))+ Result;
except end;
I := I - 4;
end;
end;

posted @ 2016-01-04 16:59  KunSun  阅读(633)  评论(0编辑  收藏  举报