My program works right in the commandline, but when I run it as a cron job it crashes on the error:
UnicodeEncodeError: 'ascii' codec can't encode character
u'\xa7' in position 13: ordinal not in range(128)
It crashes on the statement
print title
Why this is happening only when the app runs as a cron job? How could this be fixed?
I tried (with no help):
print unicode(title)
Python is 2.7