We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ee860e commit 7c68330Copy full SHA for 7c68330
extract_msg/msg_classes/msg.py
@@ -843,7 +843,16 @@ def areStringsUnicode(self) -> bool:
843
"""
844
Whether the strings are Unicode encoded or not.
845
846
- return (self.getPropertyVal('340D0003', 0) & 0x40000) != 0
+ val = self.getPropertyVal('340D0003', None)
847
+ if val is None:
848
+ # Try to get this value from the parent.
849
+ if self.prefix:
850
+ if self.__parentMsg and (msg := self.__parentMsg()) is not None:
851
+ return msg.areStringsUnicode
852
+
853
+ # Final attempt: check the actual streams.
854
+ return any(x[-1].upper().endswith('001F') for x in self.listDir())
855
+ return (val & 0x40000) != 0
856
857
@functools.cached_property
858
def attachments(self) -> Union[List[AttachmentBase], List[SignedAttachment]]:
0 commit comments