CentOS 7 tty不能显示和输入中文问题,求解

俺是小王子 2015-09-20 10:27:36
GONME和KDE 没有问题,bash中文输入和显示都OK

进入TTY命令行模式,无法显示中文

中文都是一个一个正方形块块

网上已经搜了很多资料,没有解决

一种说修改
/etc/sysconfig/i18n的配置,centos 7根本就没有这个文件

locale.conf 是zh_CN.UTF-8没有问题

修改/etc/profile

export LANG=zh_CN.UTF-8
export LC_ALL=zh_CN.UTF-8

无法显示中文

无法yum install fonts-chinese.noarch

求解
...全文
1458 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
angelpasswd 2019-02-17
  • 打赏
  • 举报
回复
tty 无法显示中文了么,我一直都是 显示方块
iqpkeq 2016-06-03
  • 打赏
  • 举报
回复 4
明确的和你说,TTY 不支持中文! Linux kernel maintainers do not accept patches for better Unicode support on the console because the console is to be used as an emergency interface. What needs to be done is write a terminal emulator for the Linux framebuffer that undertakes the support for Unicode. Something like a 'getty' replacement. This aspect of open-source development did not receive yet much attention 大意是:linux核心机制不接受任何的unicode补丁在Console层面,因为Console是作为一种紧急接口被使用...... 而且目前开源开发组也没有过多的关注这一点. 从这里可以得出一个结论,目前tty是给管理员紧急修复系统时所使用的界面,故而从内核层面就不支持加载unicode包;但是模拟接口比如用SSH之类的登陆,是可以支持中文的! 所以别等了。
qq_18683441 2016-06-03
  • 打赏
  • 举报
回复
我跟你一樣碰到這個问题
幻雪云痕 2015-12-14
  • 打赏
  • 举报
回复
唉,这问题,是解决不了了吗
Happy_dog Jack 2015-09-21
  • 打赏
  • 举报
回复
将utf-8改成gb2312试试

19,620

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧