I want to move the files to a specific folder.
However, due to a problem with Unicode, the file is not being moved.
import os
import shutil
file=r"c:/test/test.rar"
folder=r"c:/test/発射"
shutil.move(file, folder)
#os.rename(file, os.path.join(folder, os.path.split(file)[1]))
"shutil.move" and "os.rename" return "[Errno 22] invalid mode ('wb') or filename" and "WindowsError: [Error 123] file name". They do not recognize Unicode filename.
I searched for many solutions, but I could not solve them.
Can this be solved?
Thank you in advance for your help.