On 5 Jul., 17:39, "Emanuele Pucciarelli <[EMAIL PROTECTED]>" <[EMAIL PROTECTED]> wrote: > My guess is that if you import ugettext, then you should supply a > Unicode string as an argument: > > def index(request): > teststring = _(u"Lösung") > [...] > > (notice the 'u' before the string). > > That works here, at least using an utf-8 source file (# -*- coding: > utf-8 -*- at the start).
Thank you very much, it works! :-) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---