On Thu, Apr 12, sandro.dentella wrote:

> 
> 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?

No idea, sorry.

The whole unicode area is currently a bit slippery, and Malcolm is working
towards a more complete unicodification in a separate branch ('unicode').
The wiki contains more information about it.

Currently I'd rather avoid using unicode and encode your unicode strings
into your DEFAULT_CHARSET (which should better be UTF-8). You could 
also decode the result of _() to unicode, but I don't know if you'll run
into problems later.

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 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to