Users have reported several occurrences where Subjects and Sender names that contain "special" characters are lost. How can I make sure that these information is set as UTF.
All of the data is pulled from DB and we cannot guarantee that it will always be done through UTF connection, but I can do character conversion before setting the values. Any pointer would be great.
PS: I can provide screenshot with all headers as an example.
Non-ASCII subject / names in To, CC, BCC
Moderators: Chris Corbyn, General Moderators
- Ilija Studen
- Forum Newbie
- Posts: 7
- Joined: Thu Sep 07, 2006 10:58 am
- Location: Novi Sad, Serbia
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: Non-ASCII subject / names in To, CC, BCC
Currently:
And just because v4 is about to be released, in v4 if you upgrade:
Code: Select all
$message->headers->setEncoding('B'); //This is only needed because of a bug in v3
$message->headers->setCharset('utf-8');
$message->setCharset('utf-8'); //You probably want this line tooCode: Select all
$message->getHeaders()->setCharset('utf-8');
//Or if you want to affect the entire message
$message->setCharset('utf-8');