summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatus Uzak <matus.uzak@gmail.com>2016-04-25 22:15:44 +0200
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2016-04-27 23:56:45 +0200
commitc87f80bdfe44125b10753963b2e66a6ce6e2319b (patch)
tree0a7a82eb036bc94829da74a8445c0296d6005aab
parent21e378e07c73d5edfcac26423e8bd9e0c0b0fe58 (diff)
pptrecord: TextStyles: Decode UTF-8 string to get correct number of characters stored in TextCharsAtom/TextBytesAtom.
-rw-r--r--msodumper/pptrecord.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/msodumper/pptrecord.py b/msodumper/pptrecord.py
index c1458c8..f9283d4 100644
--- a/msodumper/pptrecord.py
+++ b/msodumper/pptrecord.py
@@ -788,7 +788,7 @@ class TextStyles(BaseRecordHandler):
self.appendLine("no shape text given, assuming length of 1")
textLen = 1
else:
- textLen = len(self.streamProperties["ShapeText"])
+ textLen = len(self.streamProperties["ShapeText"].decode("UTF-8"))
# 4 bytes: <count> characters of shape text this para run is meant for
# <para attribs>