[other] 终端连接linux服务器,ls -l查看,显示八进制,不是正常的汉字。
Tofloor
poster avatar
捕风
deepin
2023-11-04 05:50
Author

终端连接linux服务器,ls -l查看,显示八进制,不是正常的汉字。

image.png

Reply Favorite View the author
All Replies
神末shenmo
deepin
Spark-App
2023-11-04 05:51
#1

locale-gen

Reply View the author
root
deepin
2023-11-04 06:02
#2

正常现象,你的终端软件不支持 UTF-8编码

tail

Reply View the author
捕风
deepin
2023-11-04 06:13
#3
root

正常现象,你的终端软件不支持 UTF-8编码

tail

cat 后 加 Tab提示,又可以正常显示出汉字,你说不支持,他又可以。奇怪不

Reply View the author
捕风
deepin
2023-11-04 06:15
#4
神末shenmo

locale-gen

啥意思呢?

image.png

Reply View the author
neko
deepin
Ecological co-builder
2023-11-04 07:40
#5

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

可以写到.bashrc

Reply View the author
捕风
deepin
2024-01-01 04:52
#6
neko

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

可以写到.bashrc

经过测试还是没有解决,可能是macbook默认终端问题。

Reply View the author