[PSYCOPG2] Error use result in cr.fetchall() with accent
Bug #307908 reported by
Christophe CHAUVET
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Fix Released
|
Undecided
|
Christophe Simonis (OpenERP) |
Bug Description
Hi
When execute a query with cr.execute() and retrieve the result with cr.fetchall(), the result which containt accent raise an error
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 1: ordinal not in range(12)
to works i must encode in utf-8 like
-------
result = cr.fetchall()
for x in result.
-------
This problem appear with psycopg2, use french langage with accent (éèàïêî ...)
Related branches
Changed in openobject-server: | |
assignee: | nobody → christophe-simonis |
Changed in openobject-server: | |
status: | New → Fix Released |
To post a comment you must log in.
Seems not related to Tiny.
Accents works well in Open ERP.
I close the bug, if you have a bug related to this in Open eRP, please explain where.