May-11-2019, 10:06 PM
Hi !
I'm trying to manipulate images but I can't get rid of that error :
UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 207: character maps to <undefined>
I've seen forums where people say to add encoding='utf-8' in the "open ..." but that won't work
I'm trying to manipulate images but I can't get rid of that error :
1 2 3 4 5 6 7 8 9 10 |
fichier = open ( "photo.jpg" , "r" ) lignes = fichier.readlines() Traceback (most recent call last): File "<ipython-input-32-87422df77ac2>" , line 1 , in <module> lignes = fichier.readlines() File "C:\Winpython\python-3.5.4.amd64\lib\encodings\cp1252.py" , line 23 , in decode return codecs.charmap_decode( input , self .errors,decoding_table)[ 0 ] |
I've seen forums where people say to add encoding='utf-8' in the "open ..." but that won't work