显示框而不是字符 [英] Boxes are displayed instead of characters

查看:88
本文介绍了显示框而不是字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写了一个将十六进制转换为unicode字符的代码.当某些阿拉伯语/中文字符正确显示时,其中许多字符显示为框.

代码段:

I have written a code which converts hexadecimal to unicode character. While some of arabic/chinese characters are displaying properly, many of them are displayed as boxes.

Code Snippet:

Dim textLength As Integer
Dim charValue As Char
textLength = Int32.Parse(asciiText,System.Globalization.NumberStyles.HexNumber)
charValue = System.Convert.ToChar(textLength)
txtASCII.Text = txtASCII.Text + charValue.ToString


如果在这里传递asciiText = 0631,它将转换为阿拉伯字符.
但是如果我通过asciiText = 0600,它将转换为方形框.

另外,如果我复制粘贴word文档中生成的框,则会再次显示阿拉伯语.

VB应用程序中的字体为"Microsoft Sans Serif",语言为默认"

谁能建议如何解决这个问题?
在此先感谢您.


If, here I pass asciiText=0631, it converts into arabic character.
but if i pass asciiText= 0600, it converts into square box.

Also, if i copy-paste the box generated in the word document, it displays arabic language again.

Font in VB application is ''Microsoft Sans Serif'' and Language is ''Default''

Can anyone suggest how to solve this problem?
Thanks in advance.

推荐答案

使用支持那个字符的字体!
P.S.没有支持所有所有字符的字体.
Use a font that supports that characters!
P.S. There is no font that supports all characters.


这篇关于显示框而不是字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆