openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #08921
[Bug 911781] Re: encoding issue with selection fields
[Expired for OpenERP Server because there has been no activity for 60
days.]
** Changed in: openobject-server
Status: Incomplete => Expired
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/911781
Title:
encoding issue with selection fields
Status in OpenERP Server:
Expired
Bug description:
When creating or updating an object, there is a check on the selection fields :
method _check_selection_field_value(self, cr, uid, field, value, context=None) in orm.py (line 2327 for me).
My page encoding and DB are UTF-8, but when you process the value, if you have accents (ie é or à), this error happens :
File "orm.py", line 3404, in write
File "orm.py", line 2330, in _check_selection_field_value
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 2: ordinal not in range(128)
My temporary solution is to decode the value (value =
value.decode('utf-8'))
Is this normal?
Thank you,
David.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/911781/+subscriptions
References