Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Enhance filters.Decode unicode handling #47
Migrated issue, originally created by Anonymous
Right now, even when using filters.decode.utf8, it's possible to get str object after filter - when using some object which is not instance of basestring.
For example when using Mako with Django oldforms, Mako will crash on something like
So here's the small patch that will decode using given encoding even not basestring objects after converting object to string using str().