Unable to upload file having Japanese characters in filename using CURL command

334 Views Asked by At

I want to upload a file. If filename is belong to ASCII charset then it is uploaded successfully, but when filename has Japanese characters in it, then it is not able to upload.

Command used:

  1. curl -X POST -u $username:$pass -F filedata=@/tmp/test_file_20_00.txt https:someURL above command is working fine.

  2. curl -X POST -u $username:$pass -F filedata=@/tmp/test_fileサイト障害対応_20_00.txt https:someURL

above command status is 200, but actually file is not uploaded. Please help. I think problem with Japanese characters in filename.

0

There are 0 best solutions below