utf 8 in scripting terminal window

Advertisement

Guest

utf 8 in scripting terminal window

I know this is talked about in some threads before, but i found no real solution
to my question

while you say in the documentation that winscp defaults to utf-8 i cannot agree with that

writing some german chars and redirecting them to a file with "echo äöüß > testumlaute.txt"

results in

XXX@myserver.de ~ $ hexdump -C testumlaute.txt
00000000 e4 f6 fc df 0a |.....|
00000005

checking which encoding this is results in

>>> chardet.detect(chr(0xe4)+chr(0xf6)+chr(0xfc)+chr(0xdf))
{'confidence': 0.99, 'encoding': 'windows-1255'}


cp1255 is not utf-8.

this was tested with a freshly installed winscp 5.7, which was mentioned as using utf8
per default if i read it right?

So how can I configure winscp to use utf-8 for the whole communication?

locale is /root$ locale
LANG=de_DE.utf8
LANGUAGE=
LC_CTYPE="de_DE.utf8"
LC_NUMERIC="de_DE.utf8"
LC_TIME="de_DE.utf8"
LC_COLLATE="de_DE.utf8"
LC_MONETARY="de_DE.utf8"
LC_MESSAGES="de_DE.utf8"
LC_PAPER="de_DE.utf8"
LC_NAME="de_DE.utf8"
LC_ADDRESS="de_DE.utf8"
LC_TELEPHONE="de_DE.utf8"
LC_MEASUREMENT="de_DE.utf8"
LC_IDENTIFICATION="de_DE.utf8"
LC_ALL=

Thanks and
best regards

Reply with quote

Advertisement

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

Re: utf 8 in scripting terminal window

It works for me:

$ hexdump -C testumlaute.txt
00000000 c3 a4 c3 b6 c3 bc c3 9f 0a |.........|
00000009

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

Advertisement

You can post new topics in this forum