2021-02-07, 18:55
I'm not a python developper and I imagine it's a newbie question, but I can't fin any answer to my problem, or I can't understand it and I need someone to explain me like I'm six.
So I would like to rename some files but files with name that contains some characters like single quotes triggers UnicodeDecodeError.
I tried with kodi.six but I still have the issue.
I also tried to encode them but with no success.
Can someone help me with this ?
So I would like to rename some files but files with name that contains some characters like single quotes triggers UnicodeDecodeError.
I tried with kodi.six but I still have the issue.
I also tried to encode them but with no success.
python:xbmcvfs.rename(folder2 + "/" + file, folder2 + u"/" + newFileName)
Can someone help me with this ?