Encodign issue in Python 3.3.1 (once again)
Νίκος Γκρ33κ
nikos.gr33k at gmail.com
Tue May 28 12:00:18 EDT 2013
I do not know here to find connections.py Michael.
But i do not understand since iam suing the following 2 statements, why a unicode error remains.
#needed line, script does *not* work without it
sys.stdout = os.fdopen(1, 'w', encoding='utf-8')
# connect to database
con = pymysql.connect( db = 'pelatologio', host = 'localhost', user = 'myself', passwd = 'mypass', init_command='SET NAMES UTF8' )
cur = con.cursor()
Shall i chnage the connector form 'pymysql' => 'MySQLdb' ?
More information about the Python-list
mailing list