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"
~
~
Read More:
- How to Uncompress 7z files on Ubuntu, Debian, Fedora
- Sublime text 3 compiles and executes C/C++ programs directly
- Linux changing password enter new UNIX password: passwd: authentication token manipulation error
- linux yum Error: PYCURL ERROR 6 – “Couldn’t resolve host ‘mirrorlist.centos.org’”
- PM2 user defined Log, PID and other Log File Locations
- How to Fix xterm Xt error: Can’t open display: xterm: DISPLAY is not set
- Set the cursor of Ubuntu terminal to turn on automatic display
- Linux gets the program PID according to the port
- How to Fix Oracle listener error Linux error: 111: connection reused
- summary of configuration and deployment of uwsgi+nginx+flag in centos7 and why internal server error is prompted [official instructions]
- Installation and configuration of redis in Linux
- CentOS/RHEL 7: How to Reinstall GRUB2 from Rescue Mode (EFI)
- How to Fix error 28 from storage engine
- Linux Nagios failed to log in to internal server error (Fixed)
- Android converts a view to bitmap + to handle the black edge of the view with rounded corners
- How to Fix Linux sub process /usr/bin/dpkg returned an error code (1)
- How to Use Apt get Command Under Mac OSX
- How to Skip testing when Maven is packaged
- Error report when executing ifconfig under centos7