What does it mean the text in control appear to be

2019-09-11 10:46发布

I have a control displaying text, but somehow the text appear to be all squares, why's that?

P.S It's an edit control in winform and the original text is in Japanese.

Thanks,

标签: encoding
3条回答
▲ chillily
2楼-- · 2019-09-11 11:15

Try browsing to a Japanese website, copy some Japanese text & paste it into this textbox.
If it shows as squares, the problem could be due to font of the textbox.

Set the font that supports unicode range for Japanese characters (see if Arial Unicode MS helps).

查看更多
别忘想泡老子
3楼-- · 2019-09-11 11:19

That means the font does not contain the characters you want to display. In that case those blocks are shown as placeholders.

Most common reason for this are:

  • Wrong encoding of the string.
  • Displaying unicode characters without a proper font.
查看更多
狗以群分
4楼-- · 2019-09-11 11:23

It is probably due to a missing unicode character set. Check out the wikipedia page for details of installing updates.

查看更多
登录 后发表回答