为何到现今还不能从系统层面解决tty1中文乱码的问题?

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
九天星
帖子: 1440
注册时间: 2007-07-14 20:45

为何到现今还不能从系统层面解决tty1中文乱码的问题?

#1

帖子 九天星 » 2017-12-29 1:15

昨天因为tty1界面下中文乱码的问题在网上搜了一下解决方案,发现还需要以安装软件的方式来解决。

我想问一下为何还不能从系统层面解决tty1界面中文乱码?是什么因素导致的?
funicorn
帖子: 1318
注册时间: 2005-09-13 4:56
系统: Ubuntu Jammy Jellyfi

Re: 为何到现今还不能从系统层面解决tty1中文乱码的问题?

#2

帖子 funicorn » 2017-12-29 9:40

因为linux桌面碎片化,犄角旮旯没人管
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 为何到现今还不能从系统层面解决tty1中文乱码的问题?

#3

帖子 poloshiao » 2017-12-29 10:55

tty1 ~ tty6 是 console 界面 是 單字元
中文字符 是雙位元 需要在 RAM 內存 額外設定出 Framebuffer (帧缓冲器)
在 Ubuntu (或 Linux) 安裝 套件 fbterm 可以提供 Framebuffer 以顯示雙位元的 中文字符
tty7 ~ tty12 圖形 界面 已經安裝了 Framebuffer 模組

1. 參閱
1-1. https://en.wikipedia.org/wiki/Framebuffer
Framebuffer
1-2. https://zh.wikipedia.org/wiki/%E5%B8%A7 ... 2%E5%99%A8
帧缓冲器
1-3. https://zh.wikipedia.org/wiki/%E5%AD%97 ... 6%E7%A0%81
字元編碼
1-4. https://zh.wikipedia.org/wiki/%E9%9B%99 ... 3%E9%9B%86
雙位元組字元集
1-5. https://en.wikipedia.org/wiki/Virtual_console
Virtual console
1-6. https://packages.ubuntu.com/search?suit ... chon=names
套件 fbterm
A fast framebuffer based terminal emulator for Linux
为何还不能从系统层面解决tty1界面中文乱码?是什么因素导致的?
需要雙位元的作業系統是少數
當然你可以自己編輯一個包含framebuffer的客製化 ISO
回复