Topic "windows script utf8 unicode filenames"

Author Message
abakker
[View user's profile]

Joined: 2004-05-11
Posts: 9
On a Windows system I have PUT <filename> in a script where <filename> contains UTF8 characters. WINSCP returns an error that the file does not exist. I have tried setting the Windows console codepage to 1250 and 65001 and the console font to Lucida, but that makes no difference. How can I pass a filename with UTF8 characters to WINSCP?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
If you are using a script file (/script= command-line switch), make sure the script file starts with UTF-8 BOM.
https://en.wikipedia.org/wiki/Byte_order_mark#UTF-8
http://winscp.net/eng/docs/scripting#using_scripting

Btw, the next version of WinSCP (5.8) will assume the script file uses UTF-8 by default, even without BOM.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License