On Fri, Feb 05, 2010 at 03:48:15AM +0100, Petr Jake?? wrote:
> MySQLConnection = mysql.builder()
You don't need that.
> connection = connectionForURI("mysql://
> prestashop:prestashop@127.0.0.1:3306/prestashop")
> =============================================================================
>
> import MySQLdb
>
> conn = MySQLdb.connect (host = "localhost",
> user = "prestashop",
> passwd = "prestashop",
> db = "prestashop",
> use_unicode = True,
> charset = "utf8")
You didn't use 'use_unicode' and 'charset' in the SQLObject's DB
URI - my be this is the cause? Try
connection = connectionForURI("mysql://prestashop:prestashop@127.0.0.1:3306/prestashop?use_unicode=1&charset=utf8")
Oleg.
--
Oleg Broytman http://phd.pp.ru/ ph...@ph...
Programmers don't die, they just GOSUB without RETURN.
|