If you don't want to rely on Django's smart_str, you can do following: if isinstance(value, unicode): value = value.encode('utf-8', 'ignore') return textile.textile(value, encoding=settings.DEFAULT_CHARSET, output=settings.DEFAULT_CHARSET)
textile.textile() certainly breaks with your error if given unicode object. Anyone can repeat it. The problem probably doesn't manifest more often because textile.textile() could get strings in most cases and only in few cases it gets unicode - and then your server breaks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---