# linux Grub中文出现乱码的原因和解决办法

https://www.gnu.org/software/grub/manual/html_node/lang.html

13.1.12 lang

If this variable is set, it names the language code that the gettext command (see gettext) uses to translate strings. For example, French would be named as ‘fr’, and Simplified Chinese as ‘zh_CN’.

grub-mkconfig (see Simple configuration) will try to set a reasonable default for this variable based on the system locale.

https://www.gnu.org/software/grub/manual/html_node/gettext.html#gettext

14.3.16 gettext

Command: gettext string
Translate string into the current language.

The current language code is stored in the ‘lang’ variable in GRUB’s environment (see lang). Translation files in MO format are read from ‘locale_dir’ (see locale_dir), usually /boot/grub/locale.

sudo gedit /etc/grub.d/00_header

sudo update-grub