当我的文本显示为问号时,这意味着什么? [英] What does it mean when my text is displayed as Question Marks?
本文介绍了当我的文本显示为问号时,这意味着什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正试图在我的程序中使用(比如说)Windows GDI显示一些文本,而且一些unicode字符显示为问号?是什么?
在Windows中,当尝试显示Unicode字符时,会出现两个常见的显示问题:
-
文本有时会出现问题标记
- 当Unicode数据通常通过系统转换为8位字符集编码(或技术上的多字节字符)代码页(但可以在转换调用中指定其他代码页)。如果目标8位字符集不包含所需的字符,则目标字符集中不可表示的任何字符将转换为问号。
-
文本有时显示为框
- 对于特定字符不具有glpyh的字体,这是一个问题。当文档中的Unicode字符与字体支持的字符不匹配时,会显示框。具体而言,这些框表示所选字体不支持的字符。
I'm attempting to display some text in my program using (say) Windows GDI and some of the unicode characters are displayed as question marks? What is up?
See also: What does it mean when my text is displayed as boxes?
解决方案
In Windows there are 2 common display problems that occur when trying to display Unicode characters:
text sometimes appears as question marks
- This occurs when Unicode data is converted to an 8-bit character set encoding (or technically multi-byte characters) usually via the system codepage (but other code pages can be specified in the conversion calls). If the target 8-bit character set doesn't include the characters needed, any characters not representable in the target character set get converted to question marks.
text sometimes appears as boxes
- This is a problem with the font not having the glpyh for a particular character. Boxes show up when there is a mismatch between Unicode characters in the document and those supported by the font. Specifically, the boxes represent characters not supported by the selected font.
这篇关于当我的文本显示为问号时,这意味着什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文