linux - Ubuntu command line Chinese displays a diamond shape. It is expected to be solved by introducing fonts instead of zhcon.
高洛峰
高洛峰 2017-06-15 09:23:46
0
1
1699

The remote ssh tool in xshell can display Chinese normally when connected to the ubuntu terminal

Directly go to the ubuntu terminal server and see that the Chinese characters are all diamonds

It is best to achieve normal Chinese display in the terminal

It’s useless to install Chinese fontssudo apt-get install language-pack-zh-hant language-pack-zh-hans

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all (1)
三叔

Modify Ubuntu’s configuration file /etc/default/locale
Modify the original configuration content to
LANG=”en_US.UTF-8″
LANGUAGE=”en_US:en”
Run it in the terminal:
$ locale-gen -en_US:en
After logging out or restarting, the Ubuntu Server real server physical terminal will return to the English language environment.
So, this method is not Chinese culture in the true sense, but to restore the default encoding of English

Reference http://www.linuxidc.com/Linux...
http://blog.sina.com.cn/s/blo...

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!