Re: mySQLdb versus platform problem

2007-03-16 Thread John Nagle
Robin Becker wrote: > John Nagle wrote: > >> Try: >> >> db=MySQLdb.connect(host='appx',db='sc_0',user='user',passwd='secret', >> use_unicode=True, charset = "utf8") >> >> The distinction is that "use_unicode" tells Python to convert to Unicode, >> but Python doesn't know the MySQL table ty

Re: mySQLdb versus platform problem

2007-03-16 Thread Robin Becker
John Nagle wrote: > Try: > > db=MySQLdb.connect(host='appx',db='sc_0',user='user',passwd='secret', > use_unicode=True, charset = "utf8") > > The distinction is that "use_unicode" tells Python to convert to Unicode, > but Python doesn't know the MySQL table type. 'charset="utf8"' tells >

Re: mySQLdb versus platform problem

2007-03-16 Thread John Nagle
Try: db=MySQLdb.connect(host='appx',db='sc_0',user='user',passwd='secret', use_unicode=True, charset = "utf8") The distinction is that "use_unicode" tells Python to convert to Unicode, but Python doesn't know the MySQL table type. 'charset="utf8"' tells MySQL to do the conversion to