16,748
社区成员
发帖
与我相关
我的任务
分享
function UTF8StringDecode(S: String): String;
var
U : UTF8String;
i : Integer;
begin
SetLength (U, Length(S) div 3);
for i := 1 to Length(U) do
U[i] := chr(StrToInt('$' + copy(S, i * 3 - 1, 2)));
Result := UTF8Decode(U);
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
Showmessage (UTF8StringDecode('%E6%82%B2%E6%AD%8C'));
end;