deepin 里面如何增加GB8030字符集
Tofloor
poster avatar
huang17641
deepin
2016-08-03 22:49
Author
root@huang:/home/huang# dpkg-reconfigure localesGenerating locales (this might take a while)...
  en_US.UTF-8... done
  zh_CN.UTF-8... done
Generation complete.
root@huang:/home/huang# dpkg-reconfigure locales
root@huang:/home/huang# locale-gen zh_CN.GB18030
Generating locales (this might take a while)...
  en_US.UTF-8... done
  zh_CN.UTF-8... done
Generation complete.
root@huang:/home/huang# locale-gen zh_CN.GBK
Generating locales (this might take a while)...
  en_US.UTF-8... done
  zh_CN.UTF-8... done
Generation complete.



一直增加不进去GB18030,求大神帮忙

Reply Favorite View the author
All Replies
avatar
MattD
deepin
2016-08-03 23:26
#1
先用
  1. $ locale -a
Copy the Code
确认下这个locale是不是存在。
另外,貌似locale-gen后面的参数都会被忽略,它只会读取/etc/locale.gen里面的配置并生成相应的locale。
Reply View the author
avatar
huang17641
deepin
2016-08-03 23:59
#2
https://bbs.deepin.org/post/42048
先用确认下这个locale是不是存在。
另外,貌似locale-gen后面的参数都会被忽略,它只会读取/etc/locale.gen ...

huang@huang:~/file/nc57$ sudo locale -a
[sudo] password for huang:
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_COLLATE to default locale: No such file or directory
C
C.UTF-8
POSIX
en_US.utf8

不存在这个GB18030
Reply View the author
avatar
zzz19760225
deepin
2016-08-04 00:31
#3
C
C.UTF-8
en_US.utf8
POSIX
zh_CN.utf8
--------------------------------
和楼主有点不一样
Reply View the author
avatar
longxiang
deepin
2016-08-04 00:32
#4
C
C.UTF-8
en_US.utf8
POSIX
zh_CN.utf8
--------------------------------
Reply View the author
avatar
MattD
deepin
2016-08-04 00:48
#5
https://bbs.deepin.org/post/42048
huang@huang:~/file/nc57$ sudo locale -a
[sudo] password for huang:
locale: Cannot set LC_CTYPE to ...

奇怪,主楼都已经生成zh_CN.UTF-8了,你这里怎么没显示?
另外,你可以按照我说的,在/etc/locale.gen里面加入zh_CN.GB18030,然后重新运行locale-gen试一下。
Reply View the author
avatar
huang17641
deepin
2016-08-04 16:33
#6
https://bbs.deepin.org/post/42048
奇怪,主楼都已经生成zh_CN.UTF-8了,你这里怎么没显示?
另外,你可以按照我说的,在/etc/locale.gen里面 ...

已解决,谢谢!
Reply View the author