I'm just trying to make a simple program to OCR a entire page, however I am getting a encode error, which I've always have had trouble with fixing.
My code:
from PIL import Image
import pytesseract
text = pytesseract.image_to_string(Image.open('005.png'))
print(text)
My error:
File "c:/Users/Dylan C/Desktop/Comparitor/image.py", line 4, in print(text)
File "C:\Users\Dylan C\AppData\Local\Programs\Python\Python35\lib\encodings\cp437.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_map)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u2019' in position 187: character maps to
Sorry if this is a stupid question I have JUST downloaded tesseract, and am no expert in programming.