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. They are only serialized in byte string for IO 
with database or http.

> If I construct a page with newforms objects together with
> my objects (which dont produce unicode) writing the HTML to a StringIO
> object and dumping it out at the end, I don't see unicode.  I'm
> confused.

I'd say the best and most convenient way is to teach you producer part 
to produce unicode. This is anyway a more universal format for strings.

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