By default, when gedit displays files with Chinese characters, garbled characters are displayed. You need to set it to support gb18030 encoding.
Press Alt + F2 to run gconf-editor. In the configuration Editor, open:
Apps-> gedit-2-> preferences-> encodings
Double-click auto-detected on the right, click "add", fill in the new list value "gb18030", and click "save". After adding "gb18030", click the bottom line, move it to the top row, save and exit.
PS: if you do not have the permission to change the above configuration, you can add parameters to display Chinese characters when running gedit. Command: gedit-encoding = GBK filename.
Note: The above method only ensures that the current user supports gb18030 encoding. If you want to set it to show all users or root users, you need to use "sudo gconf-Editor" on the terminal. The setting method is the same as above.