LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1137|回复: 5

系统安装后能否重新选择字符编码方式

[复制链接]
发表于 2006-11-26 12:02:08 | 显示全部楼层 |阅读模式
原来安装时不懂,选了GB2312,现在感觉这个编码方式对我来说不是最佳选择,想改选UTF-8,怎样做?
发表于 2006-11-26 14:16:04 | 显示全部楼层
Post by yuanqi
原来安装时不懂,选了GB2312,现在感觉这个编码方式对我来说不是最佳选择,想改选UTF-8,怎样做?

try!
dpkg-reconfigure locales
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-26 15:11:01 | 显示全部楼层
De2008:/home/dezr# dpkg-reconfigure locales
Generating locales (this might take a while)...
  zh_CN.UTF-8... done
Generation complete.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "zh_CN:zh:en_US:en",
        LC_ALL = (unset),
        LANG = "zh_CN"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "zh_CN:zh:en_US:en",
        LC_ALL = (unset),
        LANG = "zh_CN"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
De2008:/home/dezr#

?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-26 15:33:39 | 显示全部楼层
这次选了全部en和zh开头的,并设zh_CN.UTF-8为默认,应该可以了吧 :)
De2008:/home/dezr# dpkg-reconfigure locales
Generating locales (this might take a while)...
  zh_CN.UTF-8... done
Generation complete.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "zh_CN:zh:en_US:en",
        LC_ALL = (unset),
        LANG = "zh_CN"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "zh_CN:zh:en_US:en",
        LC_ALL = (unset),
        LANG = "zh_CN"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
deb2008:/home/dezr# dpkg-reconfigure locales
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "zh_CN:zh:en_US:en",
        LC_ALL = (unset),
        LANG = "zh_CN"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Gtk-WARNING **: Locale not supported by C library.
        Using the fallback 'C' locale. at /usr/share/perl5/Debconf/FrontEnd/Gnome.pm line 54.
Gdk-WARNING **: locale not supported by C library at /usr/share/perl5/Debconf/FrontEnd/Gnome.pm line 54.
Gtk-WARNING **: Locale not supported by C library.
        Using the fallback 'C' locale. at /usr/share/perl5/Debconf/FrontEnd/Gnome.pm line 60.
Gdk-WARNING **: locale not supported by C library at /usr/share/perl5/Debconf/FrontEnd/Gnome.pm line 60.
Generating locales (this might take a while)...
  zh_CN.GB2312... done
  zh_CN.UTF-8... done
  en_AU.ISO-8859-1... done
  en_AU.UTF-8... done
  en_BW.ISO-8859-1... done
  en_BW.UTF-8... done
  en_CA.ISO-8859-1... done
  en_CA.UTF-8... done
  en_DK.ISO-8859-1... done
  en_DK.ISO-8859-15... done
  en_DK.UTF-8... done
  en_GB.ISO-8859-1... done
  en_GB.ISO-8859-15... done
  en_GB.UTF-8... done
  en_HK.ISO-8859-1... done
  en_HK.UTF-8... done
  en_IE.ISO-8859-1... done
  en_IE.UTF-8... done
  en_IE.ISO-8859-15@euro... done
  en_IN.UTF-8... done
  en_NZ.ISO-8859-1... done
  en_NZ.UTF-8... done
  en_PH.ISO-8859-1... done
  en_PH.UTF-8... done
  en_SG.ISO-8859-1... done
  en_SG.UTF-8... done
  en_US.ISO-8859-1... done
  en_US.ISO-8859-15... done
  en_US.UTF-8... done
  en_ZA.ISO-8859-1... done
  en_ZA.UTF-8... done
  en_ZW.ISO-8859-1... done
  en_ZW.UTF-8... done
  zh_CN.GB18030... done
  zh_CN.GBK... done
  zh_HK.BIG5-HKSCS... done
  zh_HK.UTF-8... done
  zh_SG.GB2312... done
  zh_SG.GBK... done
  zh_SG.UTF-8... done
  zh_TW.BIG5... done
  zh_TW.EUC-TW... done
  zh_TW.UTF-8... done
Generation complete.
De2008:/home/dezr#
回复 支持 反对

使用道具 举报

发表于 2006-11-27 10:21:08 | 显示全部楼层
由于在Shell下不能直接使用中文,建议使用en_US.UTF-8,而不要使用中文
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-27 16:47:23 | 显示全部楼层
Post by dacheng
由于在Shell下不能直接使用中文,建议使用en_US.UTF-8,而不要使用中文


是指设默认的编码为en_US.UTF-8吗?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表