My website is based on utf-8. all data in database is in utf-8. but
django didn't auto encode string to unicode for model field. So I have
to encode them manually for template render. In fact I need use slice
filter. otherwise it will break the utf-8 bits.

could django assume all data in database encoded in DEFAULT_CHARSET.
and auto encode unicode in model.field

so I don't need: some_field_unicode =
unicode(some_model.some_field_unicode, DEFAULT_CHARSET.) everytime.

that means: type(some_model.some_field) == unicode

is this possible?


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Django developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to