TStringGrid没有显示UNICODE字符集,显示为اردوویکیپیڈیا? ? [英] TStringGrid not showing UNICODE character set, showing اردو ویکیپیڈیا as ? ?
本文介绍了TStringGrid没有显示UNICODE字符集,显示为اردوویکیپیڈیا? ?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个TStringGrid;什么时候写在网格中,它显示????? ?????而不是显示وویکیپیڈیا。
我在TStringGrid中设置的字符串是Unicode,好像我可以通过messagebox显示;
以下代码设置unicode字符串:
frmhook.sg < span class =code-keyword> do begin
if Cells [ 1 , 1 ]<> ' ' 然后 RowCount:= RowCount + 1 ;
i:= 0 ;
inc(i); Cells [i,RowCount- 1 ]:= strDataType;
inc(i);单元格[i,RowCount- 1 ]:= strDocument;
string strDataType很好,如果我把消息框放在那里它显示正确的一个,但是在TStringGrid中它是????????
可以帮助吗?
谢谢
解决方案
你需要使用支持Unicode的版本的VCL,随Delphi v.12一起提供。如果你有旧版本的Delphi,这是一个问题。
你也可以切换到Free Pascal。它具有Delphi兼容模式和支持Unicode的VCL:
http://en.wikipedia.org/ wiki / Free_Pascal [ ^ ],
http://www.freepascal.org/ [ ^ ]。
请看我过去的回答:
'''اردوویکیپیڈیا''显示''? ?''在delphi编辑器中? [ ^ ]。
-SA
Hi, I have a TStringGrid; When am writing in the grid, it is showing ????? ????? instead of showing و ویکیپیڈیا .
The string which I am setting in TStringGrid is in Unicode, as if I can show it via messagebox;
Following code setting unicode string:
with frmhook.sg do begin
if Cells[1,1] <> '' then RowCount := RowCount + 1;
i := 0;
inc(i); Cells[i,RowCount-1] :=strDataType;
inc(i); Cells[i,RowCount-1] :=strDocument;
The string strDataType is fine, If I put a messagebox there it is showing correct one , but in TStringGrid it is ????????
Can any one help?
Thanks
解决方案
You need to use Unicode-enabled version of VCL, which came with Delphi v.12. If you have older version of Delphi, this is a problem.
You can also switch to Free Pascal. It has a Delphi compatibility mode and Unicode-enabled VCL:
http://en.wikipedia.org/wiki/Free_Pascal[^],
http://www.freepascal.org/[^].
Please see my past answer:
''اردو ویکیپیڈیا'' showing ''? ?'' in delphi editor?[^].
—SA
这篇关于TStringGrid没有显示UNICODE字符集,显示为اردوویکیپیڈیا? ?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文