On Fri, 2007-10-12 at 22:24 +0400, Ivan Sagalaev wrote:
> Ken wrote:
> > Sorry if this is a stupid question, but why do forms output HTML as
> > unicode strings?  Is this arbitrary or is there some grand convention
> > we are all supposed to be following?
> 
> The general convention is that all strings inside your project are 
> supposed to be unicode. 

Or UTF-8-encoded bytestrings. Django will always return you unicode
objects, though, so you need to be prepared to handle them.

This is all documented in unicode.txt in the source or online at 
http://www.djangoproject.com/documentation/unicode/ .

Regards,
Malcolm


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

Reply via email to