Do not fail if charset is not recognized.
This commit is contained in:
parent
771b9b7515
commit
e4102b4374
@ -695,7 +695,16 @@ const string word::getConvertedText(const charset& dest) const
|
||||
{
|
||||
string out;
|
||||
|
||||
try
|
||||
{
|
||||
charset::convert(m_buffer, out, m_charset, dest);
|
||||
}
|
||||
catch (vmime::exceptions::charset_conv_error& e)
|
||||
{
|
||||
// Do not fail if charset is not recognized:
|
||||
// copy 'word' as raw text
|
||||
out = m_buffer;
|
||||
}
|
||||
|
||||
return (out);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user