Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

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?
hlakki

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?
martin

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).
hlakki

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
martin

Re: Downloading files using FTP server in Encoding format UTF-8

Is this about file contents or file name?
hlakki

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.