UTF8 problem.
Posted: 2012-11-30, 01:14 UTC
Hello everyone!
I'm running gene6 as ftp server. UTF-8 works fine for desktop ftp clients (I tested on Filezilla and Total Commander) but doesn't work for android version (I've tried both versions 1.03 and the latest 2.0 with ftp plugin version 1.01).
Here is ftp server log:
If I connect to ftp with Total Commander for desktop utf8 option works as it should and log shows as:
I guess the problem is that ftp plugin doesn't send CLNT before OPTS UTF8 ON. So I've tried to manually specify commands to send on connect as mentioned in wiki.
I filled string as: CLNT Total Commander (UTF-8) Unfortunately Command CLNT alone didn't solve problem because it is executed after OPTS UTF8 ON. Ftp log:
Then I tried to specify multiple commands string as: CLNT Total Commander (UTF-8);OPTS UTF8 ON
In this case ftp plugin stucks on connection dialog and then I have to close total commander or ftp plugin in android application managment. Ftp log:
Please help me figure out way to enable UTF8 support or run multiple commads on connect (I tried other commands separated with a ; and the result was stucked ftp plugin). Thanks in advance!
I'm running gene6 as ftp server. UTF-8 works fine for desktop ftp clients (I tested on Filezilla and Total Commander) but doesn't work for android version (I've tried both versions 1.03 and the latest 2.0 with ftp plugin version 1.01).
Here is ftp server log:
Code: Select all
12/11/30 03:48:47, 19, 192.168.1.20, , new connection from 192.168.1.20 on 192.168.1.2:54990 (Implicit SSL)
12/11/30 03:48:47, 19, 192.168.1.20, , establishing encrypted session
12/11/30 03:48:52, 19, 192.168.1.20, , hostname resolved : xperia.wlan
12/11/30 03:48:52, 19, 192.168.1.20, , sending welcome message.
12/11/30 03:48:52, 19, 192.168.1.20, , 220 private ftp server, stay away if you are not invited.
12/11/30 03:48:52, 19, 192.168.1.20, , USER testftp
12/11/30 03:48:52, 19, 192.168.1.20, testftp, 331 Password required for testftp.
12/11/30 03:48:52, 19, 192.168.1.20, testftp, PASS ****
12/11/30 03:48:52, 19, 192.168.1.20, testftp, logged in as "testftp".
12/11/30 03:48:52, 19, 192.168.1.20, testftp, 230 User testftp logged in.
12/11/30 03:48:52, 19, 192.168.1.20, testftp, PBSZ 0
12/11/30 03:48:52, 19, 192.168.1.20, testftp, 200 PBSZ=0
12/11/30 03:48:52, 19, 192.168.1.20, testftp, PROT P
12/11/30 03:48:52, 19, 192.168.1.20, testftp, 200 PROT command successful.
12/11/30 03:48:52, 19, 192.168.1.20, testftp, OPTS UTF8 ON
12/11/30 03:48:52, 19, 192.168.1.20, testftp, 501 Please CLNT first.
12/11/30 03:48:52, 19, 192.168.1.20, testftp, SYST
12/11/30 03:48:52, 19, 192.168.1.20, testftp, 215 UNIX Type: L8
Code: Select all
12/11/30 03:51:56, 21, 192.168.1.2, testftp, PBSZ 0
12/11/30 03:51:56, 21, 192.168.1.2, testftp, 200 PBSZ=0
12/11/30 03:51:56, 21, 192.168.1.2, testftp, PROT P
12/11/30 03:51:56, 21, 192.168.1.2, testftp, 200 PROT command successful.
12/11/30 03:51:56, 21, 192.168.1.2, testftp, CLNT Total Commander (UTF-8)
12/11/30 03:51:56, 21, 192.168.1.2, testftp, 200 Noted.
12/11/30 03:51:56, 21, 192.168.1.2, testftp, OPTS UTF8 ON
12/11/30 03:51:56, 21, 192.168.1.2, testftp, 200 UTF8 OPTS ON
I filled string as: CLNT Total Commander (UTF-8) Unfortunately Command CLNT alone didn't solve problem because it is executed after OPTS UTF8 ON. Ftp log:
Code: Select all
12/11/30 04:03:53, 22, 192.168.1.20, testftp, PROT P
12/11/30 04:03:53, 22, 192.168.1.20, testftp, 200 PROT command successful.
12/11/30 04:03:53, 22, 192.168.1.20, testftp, OPTS UTF8 ON
12/11/30 04:03:53, 22, 192.168.1.20, testftp, 501 Please CLNT first.
12/11/30 04:03:53, 22, 192.168.1.20, testftp, SYST
12/11/30 04:03:53, 22, 192.168.1.20, testftp, 215 UNIX Type: L8
12/11/30 04:03:53, 22, 192.168.1.20, testftp, CLNT Total Commander (UTF-8)
12/11/30 04:03:53, 22, 192.168.1.20, testftp, 200 Noted.
12/11/30 04:03:53, 22, 192.168.1.20, testftp, CWD /
In this case ftp plugin stucks on connection dialog and then I have to close total commander or ftp plugin in android application managment. Ftp log:
Code: Select all
12/11/30 04:17:07, 23, 192.168.1.20, testftp, PROT P
12/11/30 04:17:07, 23, 192.168.1.20, testftp, 200 PROT command successful.
12/11/30 04:17:07, 23, 192.168.1.20, testftp, OPTS UTF8 ON
12/11/30 04:17:07, 23, 192.168.1.20, testftp, 501 Please CLNT first.
12/11/30 04:17:07, 23, 192.168.1.20, testftp, SYST
12/11/30 04:17:07, 23, 192.168.1.20, testftp, 215 UNIX Type: L8
12/11/30 04:17:07, 23, 192.168.1.20, testftp, CLNT Total Commander (UTF-8)
12/11/30 04:17:07, 23, 192.168.1.20, testftp, 200 Noted.
12/11/30 04:17:17, 23, 192.168.1.20, testftp, disconnected. (00d00:00:15)