Comment 16 for bug 493997

Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

Closing this on OpenERP server, sorry but tools.ustr() is not the magic answer too all encoding issues, despite what you might think.
You still need to properly know/detect what encoding you are reading strings in, in order to know if tools.ustr() will be able to help you.

BTW the convention is for tools.ustr() to raise an exception when something cannot be converted to unicode, this is much better than silently returning None or u''. In this case it apparently helps highlight an upstream issue, so that's Good!