Hello guys, when I import an image it shows:
UnicodeDecodeError: "utf-8" codec can"t decode byte 0xa0 in position 10: invalid start byte
code:
def importImage():
result[0] = filedialog.askopenfile(mode = 'r', title = "Select file", initialdir = "/home/amine/Bureau/desktop", filetypes = (("jpg files", ".jpg"), ("all files", ".*")))
openImage = Image.open(result[0])
resiszeImage = openImage.resize((247, 248))
myImage = PhotoImage(resiszeImage)
uploadCnavs.config(image = myImage)