You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#26 2010-04-22 23:54:58

kpcomp
Member
Registered: 2008-07-12
Posts: 57

Re: Problem with Receivers

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

#27 2010-04-28 14:21:05

linvinus
Member
Registered: 2009-07-16
Posts: 29

Re: Problem with Receivers


glpi 0.83.2, ocs 2.0.2-2, Ubuntu 8.04.4 LTS

Offline

#28 2010-04-28 17:48:17

kpcomp
Member
Registered: 2008-07-12
Posts: 57

Re: Problem with Receivers

Thanks a LOT! Now it seems (by quick tests) to work well without any problem.
Best, Pavel

Offline

#29 2010-05-06 21:34:48

kpcomp
Member
Registered: 2008-07-12
Posts: 57

Re: Problem with Receivers

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

Board footer

Powered by FluxBB