I tried the following test:

    def testUnicode(self):
        db = webtest.setup_database(self.dbname)
        name = u'\u1234'
        self.db.insert('person', False, name=name)
        name2 = db.select('person')[0].name
        self.assertEquals(name, name2)

It worked fine with 'charset="utf8"' but failed with "SET NAMES utf8".

Can you try changing default charset of your database to utf8?

http://dev.mysql.com/doc/refman/5.0/en/charset-database.html

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to