UNICODE文字问题 [英] Issue with UNICODE Text

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

问题描述

我正在使用Visual Studio 2005开发应用程序.
我的操作系统是Windows 7专业版.该应用程序运行良好,可以接收东亚语言,然后将其存储在mysql数据库中.

但是当我将应用程序移动到也是Windows 7的另一台计算机上时,行为发生了变化(可能不确定家庭版,现在还不支持).如果我尝试键入东亚语言"文本显示框,而不是文本.

然后打开浏览器,一切正常.然后我打开微软办公室,他们很好.然后我打开记事本,它不起作用,显示框(!!!!).

当我尝试调试时,我可以猜测它从mysql服务器上获取了正确的文本.但是在调试窗口上会显示框.

现在,您可能会建议我安装东亚语言支持.它可能会解决问题.但是我想知道msword,firefox,chrome可以和记事本,visual studio 2005以及我构建的应用程序为什么会失败?

在此先谢谢

I am using visual studio 2005 to develop application.
my OS is windows 7 professional. The application works fine, it can receive East Asian language and then store it in mysql database.

but the behavior get changed when I move application to another machine which is also a windows 7 (probably home edition not sure, its not with me right now). If I try to type the East Asian Language text shows box, not the text.

Then I opened my browsers, they were OK. then I open Microsoft office they were fine. And then I open Notepad its not working, showing box(!!!!).

When I tried to debug, i can guess its getting the proper text from mysql server. but on debug window it shows boxes.

Now You might suggest me to install East Asian language support. It might solve the problem. but I am wondering how come msword, firefox, chrome can and notepad, visual studio 2005 and the application I build fails?

Thanks in Advance

推荐答案

这可能是字体问题.并非所有字体都包含相同的字符集,尤其是并非所有字体都包含对亚洲字符集的支持.因此,如果Word,Firefox等使用其他字体,则可能效果还不错,而您的应用程序和记事本使用的字体不完整,您只会看到方框.安装东亚语言支持可能会安装该字体的另一个版本,其中包含您需要的字符集,然后一切都很好.

那只是我最好的猜测.
That could be a font problem. Not all fonts contain the same character set and particularly not all contain support for the Asian character sets. So, if Word, Firefox, etc. are using a different font they might be doing ok, while your application and Notepad are using an incomplete font and you see just boxes. Installing East Asian language support might install another version of that font, which contains the character set you need and all would be fine again.

That''s just my best guess.


这篇关于UNICODE文字问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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