On Thu, May 28, 2009 at 11:29 PM, Roberto Cea <rodrigo...@gmail.com> wrote:

>
> I'm just coming off of a Unicode bug hunting expedition, adding a ton
> of "u"s before quotation marks.
> Is there a way to tell Django (or Python): "Assume all my strings are
> unicode, ok?"


If you're using Python 2.6:

Python 2.6 (r26:66721, Oct  2 2008, 11:35:03) [MSC v.1500 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> x = 'xyz'
>>> type(x)
<type 'str'>
>>> from __future__ import unicode_literals
>>> y = 'yaz'
>>> type(y)
<type 'unicode'>
>>>

Karen

--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to