Home  >  Article  >  Operation and Maintenance  >  Linux solution to the problem of XShell remote login displaying garbled characters (pictures and text)

Linux solution to the problem of XShell remote login displaying garbled characters (pictures and text)

黄舟
黄舟Original
2017-06-06 10:31:262434browse

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)



  • ## Reopen the Xshell client, that is You can see that the garbled characters disappear


    #

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn