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

黄舟
Release: 2017-06-06 10:31:26
Original
2425 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!