CentOS7.8でviやvim が文字化け現象の解決方法

1.OSの確認
# cat /etc/redhat-release
CentOS Linux release 7.8.2003 (Core)

2.ローケルを確認
# localectl status
System Locale: LANG=C
VC Keymap: jp106
X11 Layout: jp

3..LANGをutf8に設定する
# localectl set-locale LANG=ja_JP.utf8
# source /etc/locale.conf
# cat /etc/locale.conf
LANG=ja_JP.utf8

CentOS

Posted by arkgame