2009年1月5日星期一

windows xp下非unicode程序的运行

非unicode程序运行时,经常会发生的情况就是界面显示都是乱码,for example if you are not able to see the text in certain chinese programs。此时,you should change the system locale/language in order to run the programs correctly。

Unicode based platforms, such as Windows XP and Server 2003, emulate the language environment required to run non-Unicode applications by internally converting application's non-Unicode text data to Unicode using a system wide variable commonly called the "system locale" (or "language for non-Unicode applications"). The language of the non-Unicode applications should be the same script or family as the one defined by the "system locale". Failing to meet this condition results in display of garbage characters in the UI of the application.
基于unicode的平台,如windows xp和windows 2003,通过将非unicode程序的非unicode编码数据借助一个系统全局变量(system locale)内部转换为unicode编码,来运行非unicode程序。

在xp下
Select Control Panel from the Start menu.
Double click on “Regional and Language Options”.
Click on the Advanced tab.
Under “System current locale”, select the language from the drop-down list that meets the needs of your non-unicode programs.这是选择你要运行的非unicode程序适合的语言,同时你必须保证code page conversion tables包含该非unicode程序使用编码的code page转换表。如果不包含就需要添加。

标签:


评论: 发表评论

订阅 博文评论 [Atom]





<< 主页

This page is powered by Blogger. Isn't yours?

订阅 博文 [Atom]