This situation usually occurs because the Chinese language pack is not installed or there is a problem with the default language setting. Enter If you really need Chinese prompts, you can install it like this: LANG=zh_TW.UTF-8 LC_CTYPE="zh_TW.UTF-8" LC_NUMERIC=zh_TW.UTF-8 LC_TIME=zh_TW.UTF-8 LC_COLLATE="zh_TW.UTF-8" LC_MONETARY=zh_TW.UTF-8 LC_MESSAGES="zh_TW.UTF-8" LC_PAPER=zh_TW.UTF-8 LC_NAME="zh_TW.UTF-8" LC_ADDRESS="zh_TW.UTF-8" LC_TELEPHONE="zh_TW.UTF-8" LC_MEASUREMENT=zh_TW.UTF-8 LC_IDENTIFICATION="zh_TW.UTF-8" LC_ALL= Note that my language environment is Taiwan Traditional Chinese, and the simplified Chinese language should be changed from TW to CN Appendix: Let's take a look at the solution to Chinese garbled characters in the shell script that displays utf-8 encoding format in centos Problem phenomenon The shell script I wrote was saved in utf-8 encoding format, but when uploaded to centos, it was displayed as garbled characters Use shell.sh: UTF-8 Unicode text Workaround Use iconv to convert the file encoding format to gb2312 iconv -f utf-8 -t gb2312 shell.sh > shell2.sh Run file shell2.sh again to view the file encoding linuxsec2.sh: ISO-8859 text The Chinese garbled characters problem has been solved This is the end of this article about the CentOS8-bash: garbled code problem. For more related centos bash garbled code content, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future! |
<<: Example analysis of the principle and solution of MySQL sliding order problem
>>: jQuery implements HTML element hiding and display
Table of contents Preface Discover the cause Cust...
This article shares the specific code of JavaScri...
Table of contents 1. Background 2. Table creation...
Table of contents Vite project build optimization...
System tray icons are still a magical feature tod...
There are three ways to introduce CSS: inline sty...
JPQL stands for Java Persistence Query Language. ...
When I first came into contact with HTML, I alway...
This article example shares the specific code of ...
1 Requirements Overview The data of multiple tabl...
Install Docker Desktop Download address: Docker D...
Table of contents dva Using dva Implementing DVA ...
Now there are many WeChat public account operatio...
This article shares the specific code of javascri...
From handicraft design to graphic design to web de...