I now remove the use_unicode=1, and the to_utf8, and without testing the "projects.count()", the record is inserted in the database, and everything displays ok. So I guess the count() as some kind of bug, but I tested in Webconsole, and it worked ok, can anyone figure this out?
Is there another way to test the results of select ?

>>> ps = Project.select(AND(Project.q.userID == 1, Project.q.name == 'cão'))
>>> ps
<SelectResults at -4ff90894>
>>> ps.count()
1L

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

Reply via email to