i want upload my files to FTP server using with Windows conmand prompt. It working good if the filename doesn't contain UTF-8 Characters. But If it contains UTF-8 Characters not uploading to FTP service. My test.bat :
@echo off
chcp 65001
echo >> %TMP%\ab.dat
echo user b12_17312633> %TMP%\ab.dat
echo 123456ab>> %TMP%\ab.dat
echo bin>> %TMP%\ab.dat
echo cd htdocs>> %TMP%\ab.dat
for /R %1 %%f in (*.txt) do (
echo put "%%f">> %TMP%\ab.dat
)
echo bye>> %TMP%\ab.dat
echo quit>> %TMP%\ab.dat
ftp -n -s:%TMP%\ab.dat ftp.byethost12.com
pause
Output:
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 456 of 1900 allowed.
220-Local time is now 20:57. Server port: 21.
220-This is a private system - No anonymous login
220 You will be disconnected after 60 seconds of inactivity.
ftp> user b12_17312633
331 User b12_17312633 OK. Password required
230 OK. Current restricted directory is /
ftp> bin
200 TYPE is now 8-bit binary
ftp> cd htdocs
250 OK. Current directory is /htdocs
ftp> put "C:\Users\user\Desktop\FTP\çtü.txt"
C:\Users\user\Desktop\FTP\çtü.txt: File not foundftp> bye
221-Goodbye. You uploaded 0 and downloaded 0 kbytes.
221 Logout.
I tried it on "çtü.txt" for test. Note: I worked this on Windows Command Prompt.