diff options
Diffstat (limited to 'vobject/base.py')
-rw-r--r-- | vobject/base.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vobject/base.py b/vobject/base.py index 03fe38e..6131d97 100644 --- a/vobject/base.py +++ b/vobject/base.py @@ -7,6 +7,7 @@ import logging import re import six import sys +import codecs # ------------------------------------ Python 2/3 compatibility challenges ---- # Python 3 no longer has a basestring type, so.... @@ -333,7 +334,7 @@ class ContentLine(VBase): qp = True self.singletonparams.remove('QUOTED-PRINTABLE') if qp: - self.value = self.value.decode('quoted-printable') + self.value = codecs.decode(self.value.encode("utf-8"), "quoted-printable").decode(self.params['ENCODING']) @classmethod def duplicate(clz, copyit): |