UTF-8 filenames in SCP mode?

Advertisement

AnrDaemon
Joined:
Posts:
12

UTF-8 filenames in SCP mode?

When you configure WinSCP to work in SCP mode, it do not allow you to enable UTF-8 filenames on remote side.
It is a bug or intended (mis)feature?

Far2 x86, if that matters.

Reply with quote

Advertisement

Advertisement

dma_k
dma_k avatar
Joined:
Posts:
19

I vote for this feature. I believe, WinSCP should be transformed from ACSII to Unicode version for that (which is a bit of work)? Otherwise remote folder contents should be in the charset compatible with FAR console charset (no way to display Chinese on Cyrillic). I am right?

Reply with quote

Advertisement

AnrDaemon

dma_k wrote:

Pity that full Unicode support is in WinSCP since 5.0, but FAR manager users cannot benefit from this.
Here's hope that once 5.0 is out, the FAR manager plugin could get some love as well.

Reply with quote

irex
Guest

Does anyone have a success for filename Unicode encoding in SCP mode with WinSCP 5.0.2 beta?

It's strange that when I use ssh@cygwin to login the server, all filenames are decoded correctly, but winscp can't.

Reply with quote

Advertisement

Guest

Re: UTF-8 filenames in SCP mode?

AnrDaemon wrote:

When you configure WinSCP to work in SCP mode, it do not allow you to enable UTF-8 filenames on remote side.
It is a bug or intended (mis)feature?

Far2 x86, if that matters.

now in winscp5.5,UTF-8 filenames is not allowed in SCP mode :cry:

Reply with quote

Guest

Re: UTF-8 filenames in SCP mode?

AnrDaemon wrote:

When you configure WinSCP to work in SCP mode, it do not allow you to enable UTF-8 filenames on remote side.
It is a bug or intended (mis)feature?

Far2 x86, if that matters.

found "UTF-8 is not supported with SCP protocol." here: https://winscp.net/eng/docs/ui_login_environment

DropBear can transport UTF-8 encode filenames in scp,but remote panel display it in ansi.
when use sshd as host,in scp mode,the remote panel always display filenames in ansi encoding too.
can i change this default encoding to UTF-8?

Reply with quote

Advertisement

RalphGL
Guest

using scp connection to a server with LANG=de_DE.UTF-8

using scp connection to a server with LANG=de_DE.UTF-8 did not use UTF-8 coding for filenames.
no way to choose the right character set with winscp?

winscp-version is 5.5.6 built 4746

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,440
Location:
Prague, Czechia

Re: wrong documentation about a feature that does not work?

RalphGL wrote:

using scp connection to a server with LANG=de_DE.UTF-8 did not use UTF-8 coding for filenames.
no way to choose the right character set with winscp?

winscp-version is 5.5.6 built 4746

I think the information on https://winscp.net/eng/docs/ui_login_environment#utf is wrong.
utf-8 did not work in winscp with a scp-connection either LANG is set on the remote site to UTF-8 or not.
Is it allowed to change the wrong information there? Or will it work as described sooner or later?

As documented, UTF-8 is supported with SCP protocol in the latest beta release only. Please upgrade.
See https://winscp.net/tracker/325

Reply with quote

RalphGL
Guest

latest beta version

Thank you for your hint! Although utf-8 is set (LANG=de_DE.uft-8) the last beta version did not use UTF-8 if option AUTO is set. But there is an option to change to utf-8 manually and after changing the option utf-8 is used.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,440
Location:
Prague, Czechia

Re: latest beta version

RalphGL wrote:

Thank you for your hint! Although utf-8 is set (LANG=de_DE.uft-8) the last beta version did not use UTF-8 if option AUTO is set. But there is an option to change to utf-8 manually and after changing the option utf-8 is used.
Thanks for your report.
Please attach a full log file showing the problem (using the latest version of WinSCP).

To generate log file, enable logging, log in to your server and do the operation and only the operation that causes the error. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Reply with quote

RalphGL
Guest

Re: latest beta version

I created a login file, but I don´t think there is any hint for debugging in it.
The "UTF-8 encoding for filenames" was set to "On". If it is set to "Auto" it did not work.
  • scp.log (29.76 KB, Private file)
Description: The **** are replacements made by me.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,440
Location:
Prague, Czechia

Re: latest beta version

RalphGL wrote:

I created a login file, but I don´t think there is any hint for debugging in it.
The "UTF-8 encoding for filenames" was set to "On". If it is set to "Auto" it did not work.
Thanks, but this is a log for "On". I need a log for "Auto".

Reply with quote

RalphGL
Guest

log-file with option "Auto"

sorry, here a log with option auto is coming
  • scp.log (833.1 KB, Private file)
Description: **** here original content ist hidden
... here i removed some content

Reply with quote

Advertisement

RalphGL
Guest

Re: log-file with option "Auto"

[quote="RalphGL"]sorry, this was the wrong log, the new is attached now
  • scp-auto.log (82.53 KB, Private file)
Description: Log with option auto

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,440
Location:
Prague, Czechia

Re: log-file with option "Auto"

Thanks for the log:

> 2015-02-10 08:08:27.850 echo $LANG ; echo "WinSCP: this is end-of-file:$?"
...
< 2015-02-10 08:08:27.850 de_DE@euro

There's no UTF-8.
Maybe you set the LANG to "UTF-8" for interactive sessions only.

Reply with quote

RalphGL
Guest

Re: log-file with option "Auto"

martin wrote:

Maybe you set the LANG to "UTF-8" for interactive sessions only.
Maybe - but i´m not sure, where to change the environment settings for non-interactive shells. Is it /etc/profile.d/ or better /etc/ssh/sshd_config or better to create a user specific ~/.ssh/environment?
I can´t identify the file where LANG=de_DE@euro may be set.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,440
Location:
Prague, Czechia

Re: log-file with option "Auto"

RalphGL wrote:

Maybe - but i´m not sure, where to change the environment settings for non-interactive shells. Is it /etc/profile.d/ or better /etc/ssh/sshd_config or better to create a user specific ~/.ssh/environment?
I can´t identify the file where LANG=de_DE@euro may be set.
It varies. Try .bashrc (instead of .bash_profile).

Do you use PuTTY? What is value of LANG, when you login with PuTTY with Connection > SSH > TTY > Don't allocate a pseudo terminal turned off?

Reply with quote

RalphGL
Guest

Re: log-file with option "Auto"

martin wrote:


It varies. Try .bashrc (instead of .bash_profile).
in my .bashrc
LANG=de_DE.UTF-8
export LANG
is st.

martin wrote:


Do you use PuTTY? What is value of LANG, when you login with PuTTY with Connection > SSH > TTY > Don't allocate a pseudo terminal turned off?
Normally "Don't allocate a pseudo terminal" is off and the result of set|grep LANG is
LANG=de_DE.UTF-8
LANGUAGE=de_DE:en
If i activate the button before connecting i cant enter enything (no bash?)

Reply with quote

martin
Site Admin
martin avatar

Re: log-file with option "Auto"

Well, I'm not an expert on *nix shell environment. But clearly, as you can see, WinSCP behaves correctly, based on the information it gets from your server.

Reply with quote

Advertisement

You can post new topics in this forum