You are not logged in.
Hi, I had also problems with encoding in utf-8/win-1250/iso-8859-2.
Strange was, that all problematic emails were from Outlook 2003/2007.
After modification bellow, Outlook emails work well, but the others (mainly Outlook Express in iso-8859-2) do not.
mailgate.class.php
line 319
if (!empty($this->charset)&&function_exists('mb_convert_encoding'&&strtoupper($this->charset)!='HTML-ENTITIES')){
line 590
if ((strtoupper($param->attribute)=='CHARSET') && function_exists('mb_convert_encoding') && strtoupper($param->value) != 'UTF-8' && strtoupper($param->value) != 'HTML-ENTITIES'){
Can I help somehow to solve this?
You do great job.
Pavel
Offline
Please try this patch https://forge.indepnet.net/projects/glp … .class.php
glpi 0.83.2, ocs 2.0.2-2, Ubuntu 8.04.4 LTS
Offline
Thanks a LOT! Now it seems (by quick tests) to work well without any problem.
Best, Pavel
Offline
Working perfectly with exception of Windows-1250 charset.
As far as I was able to examine it is problem with mb_convert_encoding not supporting this charset.
I have tested to simply change mb_convert_encoding() to iconv() in mailgate.class.php and it seems
to work well with windows-1250, utf-8 and iso-8859-2.
But in exchange the iconv() did-not support UTF7-IMAP - did not know if it is a problem?
Could this be solution for more people? If not for all just make it possible to change as config parameter?
Best, Pavel
Offline