vmime icon indicating copy to clipboard operation
vmime copied to clipboard

How to get charset in version 0.9

Open jjohnson-airlink opened this issue 11 years ago • 0 comments

Where is there an example of getting the charset for an email?

I have:

this->charset = string("iso-8859-1");

vmime::charset content_charset(this->charset);

content_charset = *this->msg->getHeader()->findField(vmime::fields::CONTENT_TYPE)->getValue().dynamicCast vmime::charset();

And I don't even get an exception, it just faults. I am trying to determine if an invalid charset is flagged in the email by comaparing the charset value.

Thanks

jjohnson-airlink avatar Apr 03 '14 16:04 jjohnson-airlink