> sandro.dentella a écrit : > > Thanks! that was it. Now I can reproduce the error. Which is the > > "correct" solution? > > > > An easy and not really nice one is to encode title into > > DEFAULT_CHARSET, but I'd rather > > have _() return an unicode object. How should I do to obtain this? > > some python conversion exemple can peharps help you : > > textutf8=unicode(textascii,'utf-8')
this cannot be used in my case. Unicode conversion is taking place out of my control just becouse the format string is 'promoted' to unicode becouse of title being already unicode as spotted by Michael subject = _("Priority changed in ticket #%(id)s %(title)s") % ( {'id': 11, 'title': u'abc'}) what I'd like to use if the function ugettext that is documented in gettext module, but I can't find it nor in django.util.translation nor in python gettext module... ('module' object has no attribute 'ugettext') any further hint? TIA sandro *:-) -- Sandro Dentella *:-) http://www.tksql.org TkSQL Home page - My GPL work --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [EMAIL PROTECTED] 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 -~----------~----~----~----~------~----~------~--~---