diff options
author | Matus Uzak <matus.uzak@gmail.com> | 2016-04-25 22:15:44 +0200 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2016-04-27 23:56:45 +0200 |
commit | c87f80bdfe44125b10753963b2e66a6ce6e2319b (patch) | |
tree | 0a7a82eb036bc94829da74a8445c0296d6005aab | |
parent | 21e378e07c73d5edfcac26423e8bd9e0c0b0fe58 (diff) |
pptrecord: TextStyles: Decode UTF-8 string to get correct number of characters stored in TextCharsAtom/TextBytesAtom.
-rw-r--r-- | msodumper/pptrecord.py | 2 |
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> |