Encodign issue in Python 3.3.1 (once again)
Νίκος Γκρ33κ
nikos.gr33k at gmail.com
Tue May 28 12:00:18 EDT 2013
More information about the Python-list mailing list
Tue May 28 12:00:18 EDT 2013
- Previous message (by thread): Encodign issue in Python 3.3.1 (once again)
- Next message (by thread): Encodign issue in Python 3.3.1 (once again)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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' ?
- Previous message (by thread): Encodign issue in Python 3.3.1 (once again)
- Next message (by thread): Encodign issue in Python 3.3.1 (once again)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list