Loading...
 
Skip to main content

wrong charset of wiki notification email

Status
Closed
Subject
wrong charset of wiki notification email
Version
4.x
Category
  • Usability
Feature
Watch (email notifications of changes)
Submitted by
herzrein
Lastmod by
Philippe Cloutier
Rating
(0)
Description

When watching a wiki page, emails send on change contain iso-8859-1 charset in their header, while the body is utf-8 encoded.
The result is that special characters like umlauts are not being displayed properly (without manually setting the character encoding in the mail client).

Detailed error:
In lib/notification/notificationemail.php for function sendWikiEmailNotification(..) exists for sending those notifications. This function then calls tiki_send_admin_mail(..) in lib/mail/maillib.php which then starts a new instance of Zend_Mail. At this point, the Zend_Mail constructor would need to be given the charset or it uses iso-8859-1 as default.
Since the whole procedure of sending the notification seems to be ignoring the charset settings of the general tiki settings, the constructor would need to be given "utf-8".

I guess the error, though, is that character encoding is not set at all during the process. This might have to do with the fact, that wiki notifications are sent another way then i.e. structure notifications. Someone with a clue needs to look into this, though.

Solution
maillib was changed to use UTF-8 as charset by Jonny Bradley in r28034, for Tiki 5.1. Later sendWikiEmailNotification(..) was switched from maillib to TikiMail, which should respect the charset settings. This change was done by Jonny Bradley in r30979 for Tiki 6.1.
Importance
4
Priority
20
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
2987
Created
Friday 15 January, 2010 10:53:32 UTC
by herzrein
LastModif
Thursday 30 December, 2010 21:19:42 UTC


Show PHP error messages