diff options
author | Doroth?e S?n?chal <dorothee.senechal@logilab.fr> | 2009-04-08 19:21:50 +0200 |
---|---|---|
committer | Doroth?e S?n?chal <dorothee.senechal@logilab.fr> | 2009-04-08 19:21:50 +0200 |
commit | cc2b5eea1a2adac4df2df6292c713723656f54c6 (patch) | |
tree | 9b20e2411fb4c381bd434e4f00294a411edc77d2 /umessage.py | |
parent | 45d67eb4a7f4518ee941880cadc33bc43778d68d (diff) | |
download | logilab-common-cc2b5eea1a2adac4df2df6292c713723656f54c6.tar.gz |
[#6760] the decode_QP function always handles encoded lines with no charset definition
Diffstat (limited to 'umessage.py')
-rw-r--r-- | umessage.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/umessage.py b/umessage.py index f5b4db5..4aa52fe 100644 --- a/umessage.py +++ b/umessage.py @@ -19,7 +19,7 @@ except ImportError: def decode_QP(string): parts = [] for decoded, charset in decode_header(string): - if charset is None: + if not charset : charset = 'iso-8859-15' parts.append(unicode(decoded, charset, 'replace')) |