Hi Malcolm, I'm having a bit of a problem with a strange autoescape test, i.e. filter-syntex18 (taken over from templates).
The test uses a weird class: class UnicodeInStrClass: "Class whose __str__ returns a Unicode object." def __str__(self): return u'ŠĐĆŽćžšđ' Well ... somehow this is passed to force_unicode, and it fails at the indicated line ... -------------------------- def force_unicode(s, encoding='utf-8', errors='strict'): if not isinstance(s, basestring,): if hasattr(s, '__unicode__'): s = unicode(s) else: --> s = unicode(str(s), encoding, errors) elif not isinstance(s, unicode): s = s.decode(encoding, errors) return s ---------------- Since ... you cannot even get the str() of this weird object: In [83]: xxx=str(UnicodeInStrClass()) --------------------------------------------------------------------------- exceptions.UnicodeEncodeError Traceback (most recent call last) /home/mir/<ipython console> UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-15: ordinal not in range(128) Any advice? Michael -- noris network AG - Deutschherrnstraße 15-19 - D-90429 Nürnberg - Tel +49-911-9352-0 - Fax +49-911-9352-100 http://www.noris.de - The IT-Outsourcing Company Vorstand: Ingo Kraupa (Vorsitzender), Joachim Astel, Hansjochen Klenk - Vorsitzender des Aufsichtsrats: Stefan Schnabel - AG Nürnberg HRB 17689 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@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-developers?hl=en -~----------~----~----~----~------~----~------~--~---