I need to unicode "images" (icons) in the subject, for example, to display this image [☮], I can use the following code with the core/email
model.
$subject='☮';
$mailModel=Mage::getModel('core/email');
$mailModel->setSubject('=?utf-8?B?'.base64_encode($subject).'?=')
However the following code (for the core/email_template
model) is not working,
$_mailModel = Mage::getModel('core/email_template');
$_mailModel->setTemplateSubject('=?utf-8?B?'.base64_encode($subject).'?=');
it returns =?utf-8?B?SG93IHdhcyB5b3VyIG9yZGVyPyBKdXN0IGNoZWNraW5nIGluLi4u4pmlIFBMVVIg4piuIA==?=
How to display the image using the second core/email_template
model.