[提问] 在Delphi或VB的程序里面怎么将这些符号显示出来☻☺♀♂☼♠♣♥♦♫

SoftWare1999 2004-02-27 12:07:09
这些符号除了♀♂可以显示以外,其他都不能正常显示,为?

他们的unicode的范围是【$263A~~~$266B】
可以用字符映射器看到,选择英文字符如Arial

反正就是如果汉字字体库没有包括的unicode全部都是显示?,怎么解决啊

或者在unicode编码的别的位置可以找到他们,请帮帮忙咯。
...全文
119 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
readersm68 2004-08-31
  • 打赏
  • 举报
回复
function TForm1.WideStringToDisplay(mWideString: WideString): string;
var
I: Integer;
S: string;
begin
Result := '';
S := '';
for I := 1 to Length(mWideString) do
begin
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('#%d', [Ord(mWideString[I])]);
end;
if S <> '' then Result := Result + QuotedStr(S);
end;
end; { WideStringToDisplay }

function TForm1.DisplayToWideString(mDisplay: string): WideString;
var
I: Integer;
S: string;
B: Boolean;
begin
Result := '';
B := False;
mDisplay := mDisplay;
for I := 1 to Length(mDisplay) do
if B then
case mDisplay[I] of
'''':
begin
if S <> '' then Result := Result + StringReplace(S,'''''','''',[rfReplaceAll]);
if Copy(mDisplay,I + 1,1) = '''' then Result := Result + '''';
S := '';
B := False;
end;
else S := S + mDisplay[I];
end
else
case mDisplay[I] of
'#', '''':
begin
if S <> '' then Result := Result + WideChar(StrToIntDef(S,0));
S := '';
B := mDisplay[I] = '''';
end;
'$', '0'..'9', 'a'..'f', 'A'..'F':
S := S + mDisplay[I];
end;
if (not B) and (S <> '') then Result := Result + WideChar(StrToIntDef(S,0));
end; {DisplayToWideString }
SoftWare1999 2004-06-08
  • 打赏
  • 举报
回复
最新发现,在一台XP系统的机器上面可以正常显示,但是我的2000系统却不能,为什么啊?

16,748

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 语言基础/算法/系统设计
社区管理员
  • 语言基础/算法/系统设计社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧