I need to support unicode, but it looks like I misunderstand something.
In my model I made an unicodeCol for a group table:
# CGroups
class CGroups(SQLObject):
gname = UnicodeCol(length=28, alternateID=True, notNone=True)
members = MultipleJoin('Contacts', joinColumn='group')
I thought that using u'string' is the way to go when inserting data in a
UnicodeCol. But when I do that :
cg1 = CGroups(gname=u'Indéfini')
gname = Indéfini
but if I set it without the u''
cg1 = CGroups(gname='Indéfini')
Then I have it right.
What is the purpose of u''?
Thank you
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---