当前位置: 首页 > Linux, Oracle, oracle 10g, oracle 11g > 正文

Warning Cannot convert string -misc-zysong18030-medium-r-normal—140—c–iso10646-1 to type FontStruct

今天在建测试库的时候,遇到了乱码的问题,如下:

[oracle@localhost ~]$ dbca
Warning: Cannot convert string "-misc-zysong18030-medium-r-normal--*-140-*-*-c-*-iso10646-1" to type FontStruct

20140626142631
这个问题通常是LANG环境变量设置的问题,只要取消这个变量就可以解决。

[oracle@localhost ~]$ env | grep LANG
NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
LANG=zh_CN.UTF-8
GDM_LANG=zh_CN.UTF-8
[oracle@localhost ~]$ unset LANG

今天试了另一种方法,也是可以的。

[oracle@localhost ~]$ export LC_ALL=en_US

这两种方法都可以解决这个问题,只要让LANG使用英文就不会遇到这个乱码的问题了。从上面的错误提示也可以看到,DBCA调用了18030字库,18030是支持中文的字库,也就是DBCA在启动时调用的是中文的字库,而当前系统一个是没有安装这个字库,就乱码了。这个问题通常在安装了中文包的系统上会遇到,在没有安装中文支持的系统基本不会遇到这个问题。

—————————————————end——————————————

本文固定链接: http://www.dbdream.com.cn/2014/06/warning-cannot-convert-string-misc-zysong18030-medium-r-normal-140-c-iso10646-1-to-type-fontstruct/ | 信春哥,系统稳,闭眼上线不回滚!

该日志由 dbdream 于2014年06月26日发表在 Linux, Oracle, oracle 10g, oracle 11g 分类下, 你可以发表评论,并在保留原文地址及作者的情况下引用到你的网站或博客。
原创文章转载请注明: Warning Cannot convert string -misc-zysong18030-medium-r-normal—140—c–iso10646-1 to type FontStruct | 信春哥,系统稳,闭眼上线不回滚!
关键字: , , , , ,

Warning Cannot convert string -misc-zysong18030-medium-r-normal—140—c–iso10646-1 to type FontStruct:等您坐沙发呢!

发表评论

快捷键:Ctrl+Enter