I need to launch a binary in bash and the output of the binary consist of some Chinese character. so my question is how to let bash display Chinese character correctly. by the way, I use Centos.
You need UTF-8 encoding to have all Chinese characters displayed correctly.
To see your current locale just type
If you see a
Also, keep in mind that your terminal needs UTF-8 support too. This could give further information.