utils: fix exception with bad encoding
authorOlivier Matz <zer0@droids-corp.org>
Sun, 27 Nov 2016 14:38:39 +0000 (15:38 +0100)
committerOlivier Matz <olivier.matz@6wind.com>
Mon, 28 Nov 2016 09:51:16 +0000 (10:51 +0100)
commit1057fcec8ac1e8c77836b561746bdbc9b9de2725
tree064b972134002d23fc6c2972f9c37cc951864703
parentbe455c18596343c4c430babff8360b4b0b708586
utils: fix exception with bad encoding

Do not be strict when converting to unicode from an unknown encoding.
This avoids an unrecoverable exception.

Signed-off-by: Olivier Matz <zer0@droids-corp.org>
imapami/utils.py