Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Summary
Subject does not display correctly if contains non-latin characters and is a little bit long.
Proposed Solution
Change line 1012 of views_send.module from:
$mail['subject'] = mime_header_encode($message->subject);
to:
$mail['subject'] = '=?UTF-8?B?' . base64_encode($message->subject) . '?=';
Comments
Comment #1
hansfn CreditAttribution: hansfn commentedFunny that I didn't discover this bug myself since I use Norwegian characters all the time. Probably I write too short subjects. It's interesting that this core bug (IMHO) isn't fixed in D8 either.
The issue is fixed in commit 39884b9.
Comment #2
hansfn CreditAttribution: hansfn commentedFixed on the 8.x-1.x branch in commit 7d3f8b7.
Comment #4
ressa CreditAttribution: ressa commentedCould this also be committed to 7.x-1.x-dev version?
Comment #5
hansfn CreditAttribution: hansfn commentedSorry, I don't understand. It was commit to the 7.x-1.x branch first - see comment 1 above.
Comment #6
ressa CreditAttribution: ressa commentedSorry hansfn, you're right: I didn't update the module (from RC3), but just did a fast hack, by searching for "$mail['subject'] = mime_header..." and replacing that line with $mail['subject'] = '=?UTF-8?B?' . base64_encode($message->subject) . '?=';
Updating the module (the correct way!) to the latest official version fixed the problem.