Situation: Linux running C file Chinese gibberish
First, make sure that the source code is in a normal encoding format (UTF-8).
locale</code bbb>ah
<>l>
cale
locale
cd /etc
vim locale.config
#Add these below
LANG="zh_CN.UTF-8"
LC_ALL="zh_CN.UTF-8"
~
~