aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/pyexiv2/exif.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pyexiv2/exif.py b/src/pyexiv2/exif.py
index 13529cd..ec2c630 100644
--- a/src/pyexiv2/exif.py
+++ b/src/pyexiv2/exif.py
@@ -292,7 +292,10 @@ class ExifTag(ListenerInterface):
return val.decode(encoding, 'replace')
else:
# No encoding defined.
- return value
+ try:
+ return value.decode('utf-8')
+ except UnicodeError:
+ return value
elif self.type in ('Short', 'SShort'):
try: