Home >Operation and Maintenance >Linux Operation and Maintenance >Linux solution to the problem of XShell remote login displaying garbled characters (pictures and text)
When using Xshell to remotely log in to the server or host, you may encounter garbled characters, especially when Chinese appears, as shown in the figure:
This phenomenon is caused by the inconsistency between the local Xshell client character encoding and the remote side character encoding. The solution is to reset the local Xshell client encoding to make it consistent with the remote side encoding. :
First, run the locale -a command on the remote end to check the remote end encoding (you can also run it on the local Xshell client Run this command after logging in to the remote terminal)
# #Then, open "File"->"Properties" on the Xshell client, select "Terminal", and select the encoding corresponding to the remote end in the encoding settings, such as "UTF-8"
The above is the detailed content of Linux solution to the problem of XShell remote login displaying garbled characters (pictures and text). For more information, please follow other related articles on the PHP Chinese website!