Solve the problem that gftp can't recognize Chinese

Source: Internet
Author: User
Keywords Solution GFTP identify Chinese
Tags cache clear client client tools connections continued directory drop

Gftp is one of the most commonly used FTP client tools, the new version supports FTP, HTTP and SSH protocols, supporting the FTP site directly FXP (FTP site to preach, do not have to go through the local, in win under the FlashFXP friends should be very clear this point), support continued transmission, Support for multi-threaded connections, support file drag and drop, support favorites, cache remote directory list function (do not request every time remote server refresh, you can speed up the column file directory), Linux is one of the rare FTP tools!

This version began formally based on gtk2.0, unfortunately found that this version of the GTK2 compiled when not supported into the Chinese name of the directory, fortunately, with gtk1.2 compiled normal, in order to facilitate the use of everyone, now put on is based on the gtk1.2 version and the greatest degree of Chinese to facilitate the use of everyone, The feeling is OK, very stable.

Today we're going to talk about Gftp's inability to recognize the Chinese language in the following ways:

1. In the home directory under the. Gftp directory, if there is no file named RC file, a new file named RC file, its contents are as follows:

Debug 3

Set Ftp:charset GBK

Set File:charset UTF-8

Set Ftp:passive-mode No

Alias Nosetcharset "Set Ftp:charset; Set File:charset "

As above: FTP Set is remote code, file set is the local encoding. When set up, by default, the remote GBK character set can be displayed normally in the local UTF-8 environment. The file also establishes a command alias that facilitates character-encoding switching. In lftp mode of operation, you can reply to lftp default settings by entering command Nosetcharset.

2. Gftp and Virgoftp file modifications

There are many posts recommended to install a patched gftp in order to solve the Chinese garbled display problem, but this is more troublesome. In http://www.aliyun.com/zixun/aggregation/13835.html ">ubuntu Chinese website Forum of a post on a more simple solution."
Compile the two startup scripts for/usr/bin/gftp and/usr/bin/virgoftp,
After #!/bin/sh, add

Export LANG=ZH_CN

$ sudo gedit/usr/bin/gftp

$ sudo gedit/usr/bin/virgoftp

Export LANG=ZH_CN

And for Gftp, if you do this, you do not have to fill in the remote character set in the ftp-> option for zh_ch. UTF-8, otherwise the Chinese garbled problem remains. I am filling in the remote character set is: GBK
If the above settings do not solve the Chinese garbled problem, it is possible that the system does not generate the locale of the ZH_CH.GBK and Zh_ch. GB2312, you can use the following command to build:

#sudo Locale-gen ZH_CN. GBK

#sudo Locale-gen ZH_CN. GB2312

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.