UnicodeEncodeError: 'utf-8' codec can't encode characters in position 12-14: surrogates not allowed

I’m getting this error while running share_review.py code. Can anyone help me with this?

python3 share_review.py --image ~/Mexican-hot-fudge-sundae-1.jpg --message 'this is NAME’s favorite ice-cream!'

Here the charector between NAME and s is causing this error.. Try removing that charector and run

3 Likes