From 1e5f8eb33bc41cb59faf059e83701152785cabea Mon Sep 17 00:00:00 2001 From: yingyu5658 Date: Sat, 13 Dec 2025 08:33:08 +0800 Subject: Initial commit --- ...247\243\345\206\263\346\226\271\346\263\225.md" | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 "content/posts/WSL-Arch-Linux-ZSH\350\276\223\345\205\245\344\270\255\346\226\207\344\271\261\347\240\201\350\247\243\345\206\263\346\226\271\346\263\225.md" (limited to 'content/posts/WSL-Arch-Linux-ZSH输入中文乱码解决方法.md') diff --git "a/content/posts/WSL-Arch-Linux-ZSH\350\276\223\345\205\245\344\270\255\346\226\207\344\271\261\347\240\201\350\247\243\345\206\263\346\226\271\346\263\225.md" "b/content/posts/WSL-Arch-Linux-ZSH\350\276\223\345\205\245\344\270\255\346\226\207\344\271\261\347\240\201\350\247\243\345\206\263\346\226\271\346\263\225.md" new file mode 100644 index 0000000..0e2aa27 --- /dev/null +++ "b/content/posts/WSL-Arch-Linux-ZSH\350\276\223\345\205\245\344\270\255\346\226\207\344\271\261\347\240\201\350\247\243\345\206\263\346\226\271\346\263\225.md" @@ -0,0 +1,22 @@ +--- +abbrlink: 570074617 +categories: +- 往昔 +date: "2025-04-29 10:31:26" +description: 乱码是由于没有安装字体造成的,安装字体即可 +tags: +- Linux +title: WSL Arch Linux ZSH输入中文输入法乱码解决方法 +--- + +没有进行配置的情况下输入中文,一般会显示<0xffffffff>,这是由于没有安装字体造成的。 + +```bash +sudo pacman -S noto-fonts-cjk # 安装中文字体 +sudo vi /etc/locale.gen # 取消注释 zh_CN.UTF-8 +sudo locale-gen # 生成语言环境 +echo "export LANG=zh_CN.UTF-8" >> ~/.zshrc # 设置默认中文环境 +source ~/.zshrc +``` + +source后,再次尝试输入中文,无异常。 -- cgit v1.2.3