Best Practices for Python UnicodeDecodeError
I use Pylons framework, Mako template for a web based application. I wasn't really bother too deep into the way Python handles the unicode strings. I had tense moment when I did see my site crash when the page is rendered and later I came to know that it was related to UnicodeDecodeError . After seeing the error, I started mesh around my Python code adding encode, decode calls for string with 'ignore' option but still I could not see the errors gone sometime. Finally I used to decode to ascii with ignore and made the site running without any crash. Input to my site comes through many sites.