Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

UnicodeEncodeError #8

Closed
rasher opened this Issue · 1 comment

2 participants

@rasher

Traceback (most recent call last):
File "/home/jonas/local/reddit/bin/subreddit_stats", line 9, in <module>
load_entry_point('prawtools==0.3', 'console_scripts', 'subreddit_stats')()
File "/home/jonas/local/reddit/local/lib/python2.7/site-packages/prawtools/stats.py", line 450, in main
options.commenters, 5, 5, options.top, options.debug)
File "/home/jonas/local/reddit/local/lib/python2.7/site-packages/prawtools/stats.py", line 338, in publish_results
t_submitters = self.top_submitters(submitters, num_submissions)
File "/home/jonas/local/reddit/local/lib/python2.7/site-packages/prawtools/stats.py", line 250, in top_submitters
retval += ' 0. [{0}]({1})'.format(title, sub.url)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 31: ordinal not in range(128)

This happens in /r/eagles because of this thread which includes unicode in the title: http://redd.it/uar6r

@bboe
Owner

Thanks for filing. I too had this problem but was too lazy to fix it. It's fixed in version 0.4, change 35c9557.

@bboe bboe closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.