This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: UTF-8 in ftp client.

Oleksandr Gavenko:
> How can I force Cygwin ftp client use UTF-8?
> ftp> ls
> 200 Port command successful
> 150 Opening data channel for directory list.
> drwxr-xr-x 1 ftp ftp       Â0 Oct 16 Â2009 music
> drwxr-xr-x 1 ftp ftp       Â0 Sep 11 Â2009 pub
> drwxr-xr-x 1 ftp ftp       Â0 Apr 06 09:28 VERSUS. ÐÒÐÐÐÑÐÐÐâ ÐÂÐÂÐÂ
> -r--r--r-- 1 ftp ftp    Â9994240 Apr 05 13:15 ÐÒÐÐÐÂÐÐÐÐ.

That looks like UTF-8 interpreted as codepage 1251. I don't think the
traditional ftp client knows anything about different charsets, i.e.
it just writes the UTF-8 bytes coming from the server straight to the
terminal or disk. Therefore you need to use UTF-8 on the Cygwin side
as well to make this work.

Are you using still using Cygwin 1.5 (which doesn't support UTF-8) or
have you got Cygwin 1.7 set up to use CP1251?

> bash# ftp --version
> ftp (GNU inetutils) 1.5
> Latest version from - 1.7

The latest Cygwin inetutils package does contain ftp 1.7 actually.

> So I can use lftp for my purpose.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]