fetch email encoded in 'ISO-8859-1'/'GB18030'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hi,
When fetching email (both emails and attachments) which is encoded 'ISO-8859-
I receive an error.
Reproduction procedure:
1. fetch an email encoded in 'ISO-8859-
The traceback is :
Traceback (most recent call last):
File "/opt/openerp/
context=
File "/opt/openerp/
new_msg_id = model_pool.
File "/opt/openerp/
msg_id = mail_message.
File "/opt/openerp/
newid = super(mail_message, self).create(cr, uid, values, context)
File "/mnt/data/
result += self._columns[
File "/mnt/data/
idnew = obj.create(cr, user, act[2], context=context)
File "/opt/openerp/
return super(document_
File "/mnt/data/
return super(ir_
File "/mnt/data/
cr.
File "/mnt/data/
return f(self, *args, **kwargs)
File "/mnt/data/
res = self._obj.
DataError: invalid byte sequence for encoding "UTF8": 0xd0c2
Hello LIN yu,
I did same test with trunk as well with 7.0 , But I m not getting any traceback while fetching that encoded mail. (encoded by ISO-8859-1' and 'GB18030' ).
So. Would you please check this again with latest ? And please provide your screen cast with more information.
Waiting for your answer..!!
Thanks