HackerNewsAPI icon indicating copy to clipboard operation
HackerNewsAPI copied to clipboard

UnicodeEncodeError in my_test_bot.py

Open gauravaror opened this issue 11 years ago • 0 comments

Hi,

While you get and try to print the story.title in my_test_bot.py. It gives following error. 'ascii' codec can't encode character u'\u2013' in position 9: ordinal not in range(128)

Solution seems to be : http://stackoverflow.com/questions/19232385/ascii-codec-cant-encode-character-u-u2013-in-position-9-ordinal-not-in-ran

I will send a pull request in a while.

gauravaror avatar Aug 01 '14 07:08 gauravaror