2
Vote

message.get_html_body is not a wide string..

description

The message.get_html_body function returns property bag item 0x1013 as a std::wstring, according to the [MS-PST] format, the HTML body is not wide string. so the HTML comes back completely garbled.
 
when using message.open_html_body_stream() and reading as char*, it works 100%..

file attachments

comments

ccurrens wrote Feb 26, 2011 at 11:33 PM

I've noticed this while working on our .net port of this SDK. We thought it was a bug as well, until we did some more diffing. It's not an issue with the pstsdk, it seems to be saved that way in the actual PST, likely by outlook. If you open the file in a hex editor and go to the offset of the property, you can confirm the type the PST reports is a wide string, but, provided the PST isn't crypted or permuted, you can see the raw data stream, is in fact, not a wide string.

wrote Aug 6, 2011 at 10:37 AM

wrote Feb 14, 2013 at 9:08 PM