Closed Bug 1178737 Opened 9 years ago Closed 9 years ago

Bugzilla mails are not correctly UTF8 encoded (in Debian Jessie)

Categories

(Bugzilla :: Email Notifications, defect)

4.4.9
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 714724

People

(Reporter: virgo, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0
Build ID: 20150525141253

Steps to reproduce:

1. Added new comment to a bug containing non-ascii symbols like öäüõ 


Actual results:

Under Debian Jessie (Email-MIME ver 1.926) individual MIME parts of message are not UTF-8 encoded and do not have UTF-8 headers. But e-mail itself has UTF-8 encoding in header. As a result Thunderbird treats it as a UTF-8 encoded message, but accented characters are shown as invalid, because they are not UTF-8 encoded.


Expected results:

Under Debian Wheezy (Email-MIME ver  1.910-1) individual MIME parts were UTF-8 encoded and had UTF-8 headers. And the mail was shown correctly in Thunderbird.

Possibly it is a bug in Debian version of Email-MIME, but there is a workaround. But it requires two changes.
1. Locale needs to be set to UTF-8 locale like C.UTF-8 (under both versions locale was C by default) (like with "SetEnv LANG C.UTF-8" in .htaccess).
2. Email::MIME->create( needs additional attribute  charset => "UTF-8". 
With both changes applied the messages were correct again.
Problem occured both in Bugzilla 4.4.9 and 5.0.rc3.
Fixed a version.
Version: 4.4.9 → 4.4.8
After rechecking - 4.4 series version was actually 4.4.9. I don't know, why I thought, that it was incorrect version number.
Version: 4.4.8 → 4.4.9
I guess, my solution for workaround are useless. Because it worked, when I included accented character that was not in iso-8859-1. So if comment contained öäüõÖÄÜÕ, then it was still sent as iso-8859-1 encoded. But when I added ž or Ž, then it encoded as UTF-8.
Using utf8::encode on msg_text and msg_html fixed that issue.
Assignee: general → email-notifications
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Component: Bugzilla-General → Email Notifications
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.