Downloading files using FTP server in Encoding format UTF-8

Advertisement

hlakki
Joined:
Posts:
3
Location:
Bangalore, India

Downloading files using FTP server in Encoding format UTF-8

Hi martin,
Greetings!!

We've a ftp site, that site have no options supported for UTF-8.

But we need to download the files from that server in UTF-8 format.
Normally we are getting the files from that server in ANSI format and FYI it's a unix system based server.

Reply with quote

Advertisement

hlakki
Joined:
Posts:
3
Location:
Bangalore, India

I don't understand properly, Hope the below screenshot will help you to find what you are looking for and please mention to me the same

winscp.png

Reply with quote

martin
Site Admin
martin avatar

WinSCP does not do any contents encoding conversion. If you need the file in another encoding, you need to convert it after the download using some other tool. Most file editors can do that.
Though note that the sample that you have posted is pure ASCII. There's no difference between UTF-8 and ANSI for pure ASCII files. What does the screenshot even show? You wanted UTF-8, and the screenshot show UTF-8 (but as already said, that irrelevant for ASCII files).

Reply with quote

hlakki
Joined:
Posts:
3
Location:
Bangalore, India

the screenshot is a sample file and we are downloading thousands of files all are in ANSI but we need to retain those as UTF-8 format and send to another server(that server supports only UTF-8).

And for downloading we are using Winscp scripting so we want the conversion also needs to fulfill in the same script

is there anything we can make it done in same?

Reply with quote

Advertisement

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

hlakki wrote:

the screenshot is a sample file and we are downloading thousands of files all are in ANSI but we need to retain those as UTF-8 format and send to another server(that server supports only UTF-8).
What does it mean "retain those as UTF-8 format"? Do you claim that the files are in UTF-8 on the source server? And that they are somehow converted to the ANSI while downloaded? Again, WinSCP does not convert the files. Unless the source SFTP server does convert them on download (what is unlikely), they are downloaded without any change. If they are UTF-8 on the source machine, then they are most likely UTF-8 after the download too. Or do I misunderstand your question?

Reply with quote

Advertisement

You can post new topics in this forum