The subject of the recieved e-mail has strange look after I've inputed Cyrillic characters into the Subject text-area:
=?UTF-8?B?0JfQsNC80L7QstC70LXQvdC90Y8g0L3QsCBiLmt0Yy11YS5jb20g0LLRltC0IDA=?= =?UTF-8?B?OC4wNi4yMDExIC0gMTU6NDM=?=

CommentFileSizeAuthor
#6 mimemail_1182360_01.patch489 bytessgabe

Comments

sgabe’s picture

The text is UTF-8 encoded, this is normal.

sgabe’s picture

Priority: Major » Normal
khiminrm’s picture

Thanks for quick response. Is there a way to use Cyrillic characters in the subject for correct display it in a mail?

jefftrnr’s picture

I saw the same problem when the Newsletter had an apostrophy (') in it.

Could this be because mime_header_encode is used twice on the subject string in the mimemail.module file?
I've found it in two functions: mimemail_prepare_message and mimemail_mailengine.

And, I noticed that if I comment out the line with it in mimemail_prepare_message, my subject line looks in test messages works fine.

//  $subject = mime_header_encode($subject);

khiminrm, give that a try and see if it works for you. Is removing this line a cause for alarm? or is it redundant?

khiminrm’s picture

@jefftrnr: Thanks! It works fine, no error messages. I have commented the line 266 in mimemail.module.

sgabe’s picture

Title: Cyrillic characters break subject text » Subject is duble encoded
Status: Active » Fixed
StatusFileSize
new489 bytes

Committed.

sgabe’s picture

Title: Subject is duble encoded » Subject is double encoded

Correcting title.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.