UTF8 issue with Windows Explorer

346 views
Skip to first unread message

tarantoga

unread,
Jan 24, 2011, 8:10:00 AM1/24/11
to AndreasLiebig
Hello Andreas,

on my Windows Vista Laptop I use Windows Explorer for FTP, which works
fine - most of the time. But there seems to be a problem when
connected to FTPServer: non-ASCII chars are not displayed correctly,
e.g. "Björk" shows up as "Björk". I tried connecting to my Linux-FTP-
server and Windows Explorer displays the non-ASCII chars correctly.

I did some packet sniffing with Wireshark to find out, what's wrong. I
could see, that Explorer sends:
opts utf8 on
FTPserver answers:
501 OPTS command utf8 on not supported

I think this is the reason, why Explorer thinks that FTPServer uses
ASCII only.

Next I did some tests using netcat:
$ nc galaxy 2121
220 aFTPServer ready (cwd is /)
USER andi
331 - Login as andi OK. Send password
PASS *****
230 - Password accepted
opts utf8 on
501 OPTS command utf8 on not supported
OPTS UTF8 ON
200 OPTS command UTF8 ON understood

I think this is part of a more general problem (more netcat tests):
pwd
500 pwd not understood
PWD
257 "/"
list
500 list not understood
LIST
150 Directory listing for /mnt/sdcard
226 Directory send OK

According to RFC 959 this is not the expected behaviour:

[RFC 959, page 45, chapter 5.3 "COMMANDS]
...
The commands begin with a command code followed by an argument
field. The command codes are four or fewer alphabetic characters.
Upper and lower case alphabetic characters are to be treated
identically. Thus, any of the following may represent the
retrieve command:

RETR Retr retr ReTr rETr

This also applies to any symbols representing parameter values,
such as A or a for ASCII TYPE.
...

tarantoga

taran toga

unread,
Jan 24, 2011, 8:13:22 AM1/24/11
to AndreasLiebig
PS: I forgot to mention that Windows Explorer on Windows 7 also sends the non-standard "opts utf8 on", so this issue is not Vista only.

tarantoga

Andreas Liebig

unread,
Jan 25, 2011, 3:36:19 AM1/25/11
to andreasl...@googlegroups.com
Hello!

Thank you for the issue report.

I will check it and try to address the issue.

Thank you.
Andreas

> --
> You received this message because you are subscribed to the Google Groups
> "AndreasLiebig" group.
> To post to this group, send email to andreasl...@googlegroups.com.
> To unsubscribe from this group, send email to
> andreasliebiga...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/andreasliebigapps?hl=en.
>

Andreas Liebig

unread,
Feb 6, 2011, 12:38:29 PM2/6/11
to andreasl...@googlegroups.com
Hello!


I just released a new version 1.7.5 which should fix that issue.

Andreas

tarantoga

unread,
Feb 7, 2011, 5:34:54 AM2/7/11
to andreasl...@googlegroups.com
Hello Andreas!

Windows Explorer now displays UTF8 chars correctly!

I also repeated the netcat tests:
opts utf8 on
200 OPTS command utf8 on understood
pwd
257 "/"
list
150 Directory listing for /
226 Directory send OK
cWd /sdcard
250 CWD command succesful (/mnt/sdcard)

Works as it should. Great!
Thanks for the fix!

tarantoga

Andreas Liebig

unread,
Feb 7, 2011, 5:36:58 AM2/7/11
to andreasl...@googlegroups.com
Hello!

You are welcome, glad it works now and thank you for the confirmation.

Have a nice day.
Andreas

Reply all
Reply to author
Forward
0 new messages