Closed GoogleCodeExporter closed 9 years ago
For instance the self.c_dessoen field contains special chars
ibm_db_sa.base.IBM_DBDialect
[Comptoir Français de l'Image <<<<<<<<<<< This is what is should
always be
Traceback (most recent call last):
File "ibm_db_sa_check.py", line 36, in <module>
print s.query(Enseigne).all()
File "ibm_db_sa_check.py", line 28, in __repr__
return 'u{0} u{1}'.format(self.c_refsoen,self.c_dessoen)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe7' in position
13: ordinal not in range(128)
Original comment by julien.c...@gmail.com
on 4 Nov 2011 at 5:01
Solved myself.
I was using __repr__(): which will always perform the ascii conversion.
switch to __unicode__() which is I need.
Sorry for opening a dummy issue.
Original comment by julien.c...@gmail.com
on 4 Nov 2011 at 5:38
Original comment by rahul.pr...@in.ibm.com
on 14 Nov 2011 at 7:42
Original issue reported on code.google.com by
julien.c...@gmail.com
on 4 Nov 2011 at 4:52