EasyOCR icon indicating copy to clipboard operation
EasyOCR copied to clipboard

'charmap' codec can't encode character '\u2588' in position 12: character maps to <undefined>

Open Sharrnah opened this issue 2 years ago • 1 comments

I know this issue already existed here: #298

But i can't solve it like mentioned there because i am building it using PyInstaller which just ignores setting the environment variable PYTHONIOENCODING=utf-8 and/or PYTHONUTF8=1

And it is the only library thet seems to have a problem with it. Is there any other solution to it?

It also seems to work perfectly fine when the models are already downloaded. So i think its really just the downloading of models thats broken?

Edit: I found a workaround. it works when setting verbose=False.

it won't display any download progress anymore, but at least the download succeeds and OCR processing is done.

Sharrnah avatar May 13 '23 12:05 Sharrnah

BROTHER THANK YOU. YOU JUST SAVED MY LIFE <3

umutarpayy avatar Jun 07 '24 11:06 umutarpayy