If the default pg_service points to a wrong destination, an error can occur. UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 122: invalid ...
However, tesseract can sometimes produce invalid Unicode values in error_string (eg MacOS Sequioa 15.1.1, see #562) in which case this raises an exception and the ...