I tried the following lines of code but I still get an error
if print(listing_description) != UnicodeEncodeError:
print(listing_description)
Error message: if print(listing_description) != UnicodeEncodeError: UnicodeEncodeError: 'utf-8' codec can't encode characters in position 0-3: surrogates not allowed
Here's the webpage that I'm scraping from which is containing the non unicode characters:
Those flag emojis in the listing description are the problem.