Closed aaaammm336 closed 1 year ago
This error means that the file path cannot be found, most likely because the file path is not in utf-8 encoding on this Windows computer.
You can run the chcp
command in the cmd.exe window to show the current encoding.
https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/chcp
Then you can try to open the image file in another encoding:
img = Image(path, encoding='GBK')
img = Image(path, encoding='Shift_JIS')
I am having trouble loading a Japanese file using a simple code. It seems to be a Unicode issue and I am getting an error message saying
I am using Windows 10. As a temporary solution, the user changed the system locale to UTF-8.