Topic "lcd command does not work include japanese folder name"

Author Message
h-yoshida
[View user's profile]

Joined: 2016-07-28
Posts: 2
In WinSCP 5.9, lcd of scripting command does not work a path that includes the japanese folder name.


Here is the command line:

winscp.exe /console /script=test.txt /log=log.txt


Here is the script:

option batch on
open user:path@site
lcd C:\Users\taro\テスト
get testfile.txt
close
exit
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
Is your script file in UTF-8 encoding?

Quoting https://winscp.net/eng/docs/scripting#using_scripting

Quote:
The script file must use UTF-8 encoding.
h-yoshida
[View user's profile]

Joined: 2016-07-28
Posts: 2
It was caused script file is a shift jis.
It was resolved by the utf-8 of the script file.

Thank you for advice. Very Happy
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