function WideStringToDisplay(mWideString: WideString): string;
var
I: Integer;
S: string;
begin
Result := '';
S := '';
for I := 1 to Length(mWideString) do
if Ord(mWideString[I]) in [32..127] then
S := S + mWideString[I]
else begin
if S <> '' then begin
Result := Result + QuotedStr(S);
S := '';
end;
Result := Result + Format('#$%x', [Ord(mWideString[I])]);
end;
if S <> '' then Result := Result + QuotedStr(S);
end; { WideStringToDisplay }
var
I: Integer;
S: string;
begin
Result := '';
S := '';
for I := 1 to Length(mWideString) do
if Ord(mWideString[I]) in [32..127] then
S := S + mWideString[I]
else begin
if S <> '' then begin
Result := Result + QuotedStr(S);
S := '';
end;
Result := Result + Format('#$%x', [Ord(mWideString[I])]);
end;
if S <> '' then Result := Result + QuotedStr(S);
end; { WideStringToDisplay }
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货