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

#1 2008-07-24 07:04:00

KonstantinPopov
Member
Registered: 2008-03-28
Posts: 11

0.71 and Russian language

Hello!

  I've installed 0.71 for testing (current system in Production is 0.70.2).
The problem is with mail parser. My users send e-mails to system by strong rule - subject is in Russian, body can have Russian and English words, as GLPI define message language by subj.
But, in 0.71, even if subject of e-mail is in Russian, the body of ticket (all Russian words there) is in piggeon language. This works correctly in 0.70.2... How can I fix this?   

Konstantin

Last edited by KonstantinPopov (2008-07-24 07:08:59)

Offline

#2 2008-08-28 07:12:35

pizdlo
Member
Registered: 2008-08-27
Posts: 5

Re: 0.71 and Russian language

Please, fix! I have the same problem

Offline

#3 2008-08-28 09:44:01

JMD
GLPI - Lead
Registered: 2004-09-13
Posts: 9,180
Website

Re: 0.71 and Russian language

"Please, fix! "  Are we your slaves ?


JMD / Jean-Mathieu Doléans - Glpi-project.org - Association Indepnet
Apportez votre pierre au  projet GLPI   : Soutenir

Offline

#4 2008-08-28 12:57:23

pizdlo
Member
Registered: 2008-08-27
Posts: 5

Re: 0.71 and Russian language

if you would be our slaves there was not word "please"

Offline

#5 2008-08-28 18:36:25

JMD
GLPI - Lead
Registered: 2004-09-13
Posts: 9,180
Website

Re: 0.71 and Russian language

Perhaps but the "!" reflects an injunction.

We are not on your service.

IF you want a more quicker correction for your needs use a provider.


JMD / Jean-Mathieu Doléans - Glpi-project.org - Association Indepnet
Apportez votre pierre au  projet GLPI   : Soutenir

Offline

#6 2008-08-29 07:52:23

pizdlo
Member
Registered: 2008-08-27
Posts: 5

Re: 0.71 and Russian language

ok, sorry for "!" and offtopic never wanted to offend you.

i am not good at php but i am not very stupid. can you push me in right direction to fix bug by myself?

please

Last edited by pizdlo (2008-08-29 07:52:47)

Offline

#7 2008-08-29 10:07:16

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: 0.71 and Russian language

you need to determine whihch lang is used for subject and for the message body.
But it is no real simple to do.


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

#8 2008-08-29 10:13:42

pizdlo
Member
Registered: 2008-08-27
Posts: 5

Re: 0.71 and Russian language

message is cp1251 codepage (subject&body). Subject is ok, but body is not readable. In UTF8 everything is ok, but it's not possible to change Outlook settings on all clients computers.

thank you

Offline

#9 2008-08-29 16:29:06

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: 0.71 and Russian language

do you have mbstring installed ?

if subject is well decoded body may be decoded.


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

#10 2008-09-12 09:37:00

pizdlo
Member
Registered: 2008-08-27
Posts: 5

Re: 0.71 and Russian language

yes, i have mbstring
the mystical things happend. i have downgraded glpi to 0.70.2 and everything was fine with mail and mail body before i posted ticket in web interface. after that it became broken again: message subject is ok, but body is  like this: ÷¸ çà õ
message was cp1251 code page

is there any solution? i can't sleep at night %)

Offline

#11 2008-10-22 09:32:09

Taras_
Member
From: Russia
Registered: 2006-04-25
Posts: 57
Website

Re: 0.71 and Russian language

I have same problem with glpi-unstable-2008-10-05. Email submitted tickets have proper encoded subject (in russian and/or english) but bad encoded russian in body.


Multiple GLPI instances. Thanks to developers! smile

Offline

#12 2008-10-22 10:47:51

Taras_
Member
From: Russia
Registered: 2006-04-25
Posts: 57
Website

Re: 0.71 and Russian language

This move resolved this problem at less for messages sent from gmail, mail.ru and Exchange 2007.

 mailgate.class.php
//              if (!empty($this->charset)&&function_exists('mb_convert_encoding')){
//                      $body=mb_convert_encoding($body, 'utf-8',$this->charset);
//              }
                $body=mb_convert_encoding($body, 'utf-8', 'koi8-r');

And this is example test message sent from gmail:

Received: by 10.90.116.4 with HTTP; Wed, 22 Oct 2008 01:39:29 -0700 (PDT)
Message-ID: <c9e6c9970810220139ke828f71n9e3bcb1c0191cf96@mail.gmail.com>
Date: Wed, 22 Oct 2008 12:39:29 +0400
From: "Test Test" <test@SOMEDOMAIN>
To: support@SOMEDOMAIN
Subject: =?KOI8-R?Q?=E5=DD=C5_=D2=C1=DA_test!?=
MIME-Version: 1.0
Content-Type: multipart/alternative; 
    boundary="----=_Part_15485_17263345.1224664769358"
Delivered-To: test@SOMEDOMAIN

------=_Part_15485_17263345.1224664769358
Content-Type: text/plain; charset=KOI8-R
Content-Transfer-Encoding: base64
Content-Disposition: inline

5d3FIOXdowqzs7Ozs7Ozs7OzCgoKo6Ojo6MKCuXl5eUK
------=_Part_15485_17263345.1224664769358
Content-Type: text/html; charset=KOI8-R
Content-Transfer-Encoding: base64
Content-Disposition: inline

5d3FIOXdozxicj6zs7Ozs7Ozs7OzPGJyPjxicj48YnI+o6Ojo6M8YnI+PGJyPuXl5eU8YnI+Cg==
------=_Part_15485_17263345.1224664769358--

Multiple GLPI instances. Thanks to developers! smile

Offline

#13 2008-10-26 00:20:25

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: 0.71 and Russian language

I think it was corrected by :
https://dev.indepnet.net/glpi/changeset/7448


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

Board footer

Powered by FluxBB