Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

FTP unicode problem?
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Total Commander Forum Index -> Bug reports from previous betas (unresolved) Printable version
View previous topic :: View next topic  
Author Message
Rocky
Junior Member
Junior Member


Joined: 23 Dec 2004
Posts: 13

PostPosted: Fri May 15, 2009 6:25 am    Post subject: FTP unicode problem? Reply with quote

I have a ftp folder named "使命召唤4中文完全安装版 - 使命召唤中文站", I can't access it with 7.5beta3, but 7.04a works fine.
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 24602
Location: Switzerland

PostPosted: Fri May 15, 2009 10:25 am    Post subject: Reply with quote

I have just tried that with a local FTP server (RaidenFTPd):
1. Create dir "使命召唤4中文完全安装版 - 使命召唤中文站" locally
2. Copy file to it
3. Connect
4. Switch to dir
-> no problem

Does your ftp server support Unicode? You should be able to see this in the log, there should be a line like this:
OPTS UTF8 ON
220 UTF8 OPTS ON.

If not, try turning off UTF-8 manually via Ctrl+F - Edit connection.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Rocky
Junior Member
Junior Member


Joined: 23 Dec 2004
Posts: 13

PostPosted: Thu May 21, 2009 2:41 am    Post subject: Reply with quote

thanks ghisler for reply, I checked the login log, there are line like you said
Quote:

OPTS UTF8 ON
200 OK, UTF-8 enabled

but i still can't enter the folder, the error is "550 Can't change directory to 使命召唤4中文完全安装版 - 使命召唤中文站_: No such file or directory", then I change the encode option to ansi, I can access the folder Smile
Back to top
View user's profile Send private message
Rocky
Junior Member
Junior Member


Joined: 23 Dec 2004
Posts: 13

PostPosted: Thu May 21, 2009 2:44 am    Post subject: Reply with quote

By the way, not all the folder contains Chinese characters couldn't be accessed, but only some, like the one above. it's amazing...
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 24602
Location: Switzerland

PostPosted: Thu May 21, 2009 9:19 am    Post subject: Reply with quote

Maybe the server software doesn't correctly support UTF-8? If you look at the error message which you posted, there is an underscore '_' behind the name.

Can you try to connect to the server with a local encoding instead of UTF-8?
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Rocky
Junior Member
Junior Member


Joined: 23 Dec 2004
Posts: 13

PostPosted: Thu May 21, 2009 9:54 am    Post subject: Reply with quote

Yes, there is an '_' behind the name.

With a local encoding, I can connect to the server and access the folder. Maybe it's a bug of the ftp server( I found it named Pure FtpD).
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 24602
Location: Switzerland

PostPosted: Fri May 22, 2009 9:30 am    Post subject: Reply with quote

Can you try to access the directory with some other ftp client, like FileZilla?
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Rocky
Junior Member
Junior Member


Joined: 23 Dec 2004
Posts: 13

PostPosted: Mon May 25, 2009 11:47 pm    Post subject: Reply with quote

Dear ghilser, I tried FileZilla and FlashFXP, in FlashFXP site encoding settings, whether Force UTF-8 or auto-detect was set, it could connect to the site correctly, but in FileZilla settings, Force UTF-8 must be set to access the folder, otherwise it could see it, but could't access it.
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 24602
Location: Switzerland

PostPosted: Tue May 26, 2009 9:42 am    Post subject: Reply with quote

Strange, you should be able to access the same directories in Total Commander as in FileZilla. I need more information from you:
1. A log file from Total Commander where you connect to the site and then change to the directory
2. The same log file from FileZilla
3. A raw directory listing where this directory appears in. You can create it by connecting with Total Commander. Then do NOT disconnect, but go to the TEMP dir with
cd %temp%
in the command line. The newest file ftp*.tmp should contain the listing with the Chinese name.

Please send me these 3 files zipped to beta at ghisler dot com.

Thanks for your help!
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
gewone
Junior Member
Junior Member


Joined: 06 Mar 2008
Posts: 36

PostPosted: Sat Sep 12, 2009 8:26 am    Post subject: Reply with quote

Not 100% sure where to put this (whether to start new thread/not) but since this subject seems indeed related I think that I'll just slip in here Wink

My issue. First off said, I'm using TC 7.04a (w/ Shanny's Embellished Edition theme, for that matter), and FTPD is latest FileZilla. I'm a novice when it comes to which charsets belong to which country. Anyhow, I'm from Sweden. So, I have this file on FTP for instance:

Börja gå - Bebisars utveckling.pdf

When I connect to my FTPD using TC (using default settings) I get the following filename:


Börja gå_ Bebisars utveckling.pdf

Something with the charset, right? I try connecting with FileZilla Client (also default settings), and the "åäö" characters shows up like they're supposed to.

After reading this thread, I tried pulling the cmd "OPTS UTF8 OFF" in TC when connected. Then (after CTRL+R reload), the "åäö" chars show up properly. However(!), when I try downloading one of these files, it fails.

Wait, now I tried again. It seems like the stunt worked out with file named above when it was close to rootdir. However, just a few digs down in the dirtree on sysdrive made it snap again.


I simply told to download:
ftps://localhost/Documents and Settings/Ingrid/Lokala inställningar/Application Data/PUTTY.RND, and it gave me a Thread download window box stating "Error downloading file!". I enabled logging and reproduced to see what would be in it. It came up with.. nada!

See enclosure:

CWD Application Data
250 CWD successful. "/Documents and Settings/Ingrid/Lokala inställningar/Application Data" is current directory.
Get directory
PASV
227 Entering Passive Mode (77,110,10,175,50,9)
LIST -la
150 Connection accepted
Download
Waiting for server...
226 Transfer OK



How should I proceed? What could be the error?

Regards in adv~
Back to top
View user's profile Send private message Visit poster's website
gewone
Junior Member
Junior Member


Joined: 06 Mar 2008
Posts: 36

PostPosted: Sat Sep 12, 2009 8:40 am    Post subject: Interesting follow-up. Reply with quote

I took this file as simple example:

ftps://localhost/Documents and Settings/Ingrid/Lokala inställningar/Temp/_tc0/License.txt

When I'm connected, and try drag-n-droping it to local target (eg. C:\ for simple example) I get the errorbox stated in prev. post. However(!), if I hit F3 (View) w/ the Licence.txt file targeted, the GNU license shows up correctly in internal viewer. No downloading though. Same issue goes w/ all files anyplace in dirtree below(!):

ftps://localhost/Documents and Settings/Ingrid/Lokala inställningar/Temp/_tc0/License.txt

Files above stated dir is downloading just fine. Hence presumably because of something to do with the "ä" in the dirname.
I'm no expert, so I don't have a solution, just stating my issue here! Wink
Back to top
View user's profile Send private message Visit poster's website
Clo
Moderator
Moderator


Joined: 02 Dec 2003
Posts: 5737
Location: Bordeaux, France

PostPosted: Sat Sep 12, 2009 10:09 am    Post subject: Hexa coding Reply with quote

2gewone

Smile Hello !

• What does occur if you make the path like :
Quote:
ftps://localhost/Documents%20and%20Settings/Ingrid/Lokala%20inst%E3llningar/Temp/_tc0/License.txt

Question

Mr. Green KR
Claude
Clo
_________________
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Sob
Power Member
Power Member


Joined: 19 Jan 2005
Posts: 626

PostPosted: Sat Sep 12, 2009 8:40 pm    Post subject: Reply with quote

The first part is clear, "Börja ga" / "Börja gÃ¥" is the usual "utf-8 displayed as ansi" problem. Solved by turning utf8 off.

The rest is very strange. I was able to replicate something similar with "å" character and non-unicode locale set to czech (codepage windows-1250) where that character does not exist. But that way it was turned to plain "a" by server. It's not your case when you see it correctly.
If it really was charset issue and the "ä" character was the problem, you would not only have problems with downloading, but you wouldn't be able even to change into that directory. Also working viewing with F3 and non-working download sounds as nonsense, because F3 means downloading to temp directory and then showing the local file.
My only other thought is permissions problem. But as FileZilla normally runs under local system account, it again doesn't sound likely.
Back to top
View user's profile Send private message Send e-mail
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 24602
Location: Switzerland

PostPosted: Sun Sep 13, 2009 4:02 am    Post subject: Reply with quote

Can you try with Total Commander 7.50 instead of 7.04a? Don't forget to remove OPTS UTF8 OFF since TC 7.50 now supports UTF-8.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
gewone
Junior Member
Junior Member


Joined: 06 Mar 2008
Posts: 36

PostPosted: Tue Sep 15, 2009 3:36 am    Post subject: Reply with quote

Sob wrote:
Also working viewing with F3 and non-working download sounds as nonsense, because F3 means downloading to temp directory and then showing the local file.


Yeah, I know! That's whats bugging me too. However, just below I've stated some indeed interesting discoverys.


ghisler wrote:
Can you try with Total Commander 7.50 instead of 7.04a? Don't forget to remove OPTS UTF8 OFF since TC 7.50 now supports UTF-8.


Just tried. Same goes with 7.5. I seem to have pin-pointed the issue now though. Check this out.

ftps://remoteip/Documents and Settings/Ingrid/Lokala inställningar/Temp/java_install_reg.log

When I press F3, the file pop up correctly in Viewer/Lister. However, when trying to download, it fails. I then tried unticking checkboxes in the download opts box. The problem seems to derive from "Download in background (sepereate thread)". When/if I untick that option, the file downloads properly. With the option checked (like I used to have as default for all file transfers), it fails.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> Bug reports from previous betas (unresolved) All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group