vmime
vmime copied to clipboard
How to get charset in version 0.9
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