Re: Strange translation/encoding problem

2007-07-05 Thread Emanuele Pucciarelli <[EMAIL PROTECTED]>
Hi, from django.utils.translation import ugettext as _ 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

Strange translation/encoding problem

2007-07-05 Thread spacetaxi
Hi list, my django is completely utf8-configured. I'm using I18N and my msg-ids (po-files) are utf8-encoded, too. But now I've run into a strange problem: Translation of strings containing non-ascii characters is working great in templates, but it fails if I try to translate non-ascii strings