haystack / feedme-rss

Automatically exported from code.google.com/p/feedme-rss
0 stars 0 forks source link

Digest script fails due to unicode error #62

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently if we run digest.py, we get the following:

/usr/lib/python2.5/site-packages/simplejson-2.0.9-py2.5-linux-x86_64.egg/simplej
son/_speedups.py:3:
UserWarning: Module _mysql was already imported from
/var/lib/python-support/python2.5/_mysql.so, but
/var/lib/python-support/python2.5 is being added to sys.path
 import sys, pkg_resources, imp
Traceback (most recent call last):
 File "/var/virtualhost/sites/feedme/prod/server/digest.py", line 98, in
<module>
   digest_posts()
 File "/var/virtualhost/sites/feedme/prod/server/digest.py", line 17, in
digest_posts
   send_digest_posts(digested_posts, receiver)
 File "/var/virtualhost/sites/feedme/prod/server/digest.py", line 51, in
send_digest_posts
   print (u'sending ' + subject + u' to ' + unicode(to_emails)).encode('utf-8')
 File "/usr/lib/python2.5/codecs.py", line 303, in write
   data, consumed = self.encode(object, self.errors)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 42:
ordinal not in range(128)

Original issue reported on code.google.com by marcua@gmail.com on 11 Aug 2009 at 7:25

GoogleCodeExporter commented 9 years ago
Fixed in R194: http://code.google.com/p/feedme-rss/source/detail?r=194

We now only output ascii to the screen with non-ascii characters backslashed 
and escaped.

Original comment by marcua@gmail.com on 12 Aug 2009 at 1:38