UnicodeEncodeError: 'ascii' codec can't encode character u'\u2014' in position 2348: ordinal not in range(128)

please i am faced with UnicodeEncodeError, i have tried to fix it since but i cant get it. i need help

Python file write accepts string as input. I think you have some byte characters too in your content. A workaround is just typecast content with string by doing str(content).