Lftp garbled Solution

Source: Internet
Author: User
Lftp garbled solution-Linux Enterprise Application-Linux server application information. For details, refer to the following section. Most ftp servers in China use gbk for Chinese encoding, while most linxu versions (including debian, redhat, centOS, and fc) Use utf8 by default, as a result, Chinese garbled characters may occur when accessing the ftp server. There are two solutions:

1. temporary solution
Log on to the ftp server using lftp and enter the following two commands:

Set ftp: charset gbk
Set file: charset utf8

2. permanent solution
In the $ HOME/. lftp directory, edit the rc file (if no file is created) and enter the following two lines:

Set ftp: charset gbk
Set file: charset utf8

This method causes Chinese garbled characters when accessing the utf8-encoded server, but there are few opportunities in the domestic environment. If garbled characters appear, enter the following two lines:

Set ftp: charset utf8
Set file: charset utf8

Another ftp client that uses a lot of graphical interfaces is gftp. You can select encoding in the options. People who use Windows clients should be able to quickly get to the encoding options, select the server-side Encoding As gbk.

By the way, the problem of coding makes it much more difficult for Chinese to use linux than to use English-speaking people. It takes a lot of time to develop a system that can cope with daily applications.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.