VKontakte.DJ
forum traveling
 

Celestial Software

...better by design

Home Support SSH Client Forums
Welcome, Guest
Please Login or Register.    Lost Password?
sftp and utf8 (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: sftp and utf8
#2313
sftp and utf8 8 Years, 5 Months ago  
Hi,
I am evaluating absolutelnet's demo version.
I see ssh displays correctly the Japanese filenames but not sftp.:(
I am wondering if sftp should support utf8 characters or simply be badely configured?
Thank you in advance for your help.
flsoft (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
The administrator has disabled public write access.  
#2316
Re:sftp and utf8 8 Years, 5 Months ago  
Yes, Absolute handles Japanese in the terminal well. The things you have to consider to make this work (for those who don't know) are the LANG variable on the host, and the font and translation settings in Absolute (options->properties->appearance).

For SFTP, it's a bit different. AbsoluteTelnet supports SFTP version 4, which (among other things) allows the host to tell the client whether the filename is in UTF8 format or not. So, if Absolute is talking to a host that also supports SFTP version 4, the filenames should appear correctly. However man popular SFTP server software (OpenSSH included) only support SFTP version 3, which does not allow the SFTP host to tell AbsoluteTelnet the filename encoding. This leaves AbsoluteTelnet to *guess* (sometimes badly) at what encoding to use.

I'll look into this further. It might be reasonable to default the translation to match the one being used in the terminal. This may work in your environment, but may not be the right solution for everyone. It might also be reasonable to allow the user to explicitly select the filename character set when the host is using SFTP version 3 or below.

Are you using OpenSSH on the server?

There is an OpenSSH bug for this as well.
https://bugzilla.mindrot.org/show_bug.cgi?id=1068


More to come........
bpence (Admin)
Admin
Posts: 1328
graph
User Offline Click here to see the profile of this user
Logged Logged  
 
Brian Pence
Celestial Software
SSH , SFTP, and Telnet in a tabbed interface for Windows XP, Vista, Mobile, and others
 
The administrator has disabled public write access.  
#2317
Re:sftp and utf8 8 Years, 5 Months ago  
I've made some changes that help. Download the beta below and let me know how it works for you. In this version, if the sftp protocol is level 4 or above, utf8 encoding is assumed. Below level 4, the character set of the terminal session is used to decode the filenames. So, if you're using utf8 in the terminal session, the filenames will be decoded as utf8 in the sftp as well.

http://www.celestialsoftware.net/telnet/...teTelnet7.54RC16.exe

Enjoy!
bpence (Admin)
Admin
Posts: 1328
graph
User Offline Click here to see the profile of this user
Logged Logged  
 
Brian Pence
Celestial Software
SSH , SFTP, and Telnet in a tabbed interface for Windows XP, Vista, Mobile, and others
 
The administrator has disabled public write access.  
#2318
Re:sftp and utf8 8 Years, 5 Months ago  
Hi,
thank you very much for a prompt reply.
Now the filenames in unicode are correctly displayed.:cheer:
By the way, I have another question.
Does sftp support only a binary mode transfer or is it possible to switch to a text mode transfer?
Thank you again for your great support.
flsoft (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
The administrator has disabled public write access.  
#2319
Re:sftp and utf8 8 Years, 5 Months ago  
Currently, only binary file transfers are supported. Text mode transfers will be supported in the future.
bpence (Admin)
Admin
Posts: 1328
graph
User Offline Click here to see the profile of this user
Logged Logged  
 
Brian Pence
Celestial Software
SSH , SFTP, and Telnet in a tabbed interface for Windows XP, Vista, Mobile, and others
 
The administrator has disabled public write access.  
Go to top