且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

为什么我的终端不能正确输出 unicode 字符?

更新时间:2022-11-09 09:07:17

我想通了.我必须确保我在 /etc/rc.confLANG="en_US.UTF-8" 中设置了 LANGUAGE="en_US.UTF-8"/etc/locale.conf 中,然后注销并重新登录并且它工作.我的终端现在可以正确显示 unicode.

I figured it out. I had to make sure I set LANGUAGE="en_US.UTF-8" in /etc/rc.conf and LANG="en_US.UTF-8" in /etc/locale.conf, then logged out and logged back in and it worked. My terminal displays unicode properly now.