You are not logged in.
Pages: 1
Topic closed
Here is discussion:
http://glpi-project.org/forum/viewtopic.php?id=11348
and here
http://glpi-project.org/forum/viewtopic.php?id=10054
mailgate.class.php has at least one bug related to encoding message body to utf-8 when building ticket.
this->charset may be initialized only in decodeMimeString() which called AFTER encoding body.
Simple solution is placing call to decodeMimeString() BEFORE body encoding.
// Now decodeMimeString() call is here
$head['subject']=$this->decodeMimeString($head['subject']);
// This condition was never met
if (!empty($this->charset)&&function_exists('mb_convert_encoding')){
$body=mb_convert_encoding($body, 'utf-8',$this->charset);
}
if (!seems_utf8($body)){
$tkt['contents']= utf8_encode($body);
}else{
$tkt['contents']= $body;
}
// Add message from getAttached
if ($this->addtobody) {
$tkt['contents'] .= $this->addtobody;
}
// decodeMimeString() call was here
Hope, it change will be made in both stable and unstable (both are affected as i understand).
Multiple GLPI instances. Thanks to developers!
Offline
Bonjour,
J'ai exactement le même problème, comment corriger cela ?
D'avance merci.
Hi,
I've exactly the same problem, How to fix this bug ?
Best regards.
Offline
Taras_ donne une solution. testez là et dites nous si cela fonctionne chez vous.
MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI : Support Contribute References Freshmeat
Offline
MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI : Support Contribute References Freshmeat
Offline
Pages: 1
Topic closed