Set header charset automaticaly
Posted: Thu Dec 06, 2007 9:28 am
Based on what I've tried, Swift does not set other than default charset to headers automaticaly. It is necessary to form a conctruction like
Instead of setting headers charset directly in constructor of Swift_Message or in Swift_Message::setCharset.
What is the reason for this behavior? Is there some technical difficulty in this or is it good feature request
?
Code: Select all
$message = new Swift_Message($subject, $body, 'text/plain', null, 'ISO-8859-2');
$message->headers->setCharset('ISO-8859-2');What is the reason for this behavior? Is there some technical difficulty in this or is it good feature request