[Vtigercrm-developers] Mail Converter - subject encoding

Tony Sandman tonysandman999 at gmail.com
Sun Apr 8 21:42:33 GMT 2018


That worked out. Tnx.

It usually happen when sending in TH from outlook.com or maybe also from
some other stuff.

T.

On Mon, Apr 9, 2018 at 4:21 AM, Stefan Warnat <ich at stefanwarnat.de> wrote:

> Hy Tony,
>
> Probably by adding this line after the last line of *__construct*
> function of MailRecord.php:
>
> $this->_subject  = iconv('WINDOWS-874', 'UTF-8', $this->_subject);
>
> But I have one additional question for you, because I'm not full sure how to send such email, like in real situations.
> (I know how to send with PHP; but I'm not sure this will be create a real test case.)
>
> Can you please send a so encoded mail to *support at redoo.email* ? I will add this mail to my test cases of Mailscanner of our modules to automatically decode. Many thanks!
>
>
> Regards,
>
> Stefan
>
> ----
>
> *Redoo Networks GmbH*
>
> On Sun, Apr 8, 2018 at 5:55 AM, Tony Sandman <tonysandman999 at gmail.com>
> wrote:
>
>> I can convert body text written in WIN874 adding following to "function
>> getBodyText"
>>
>> if ($this->_charset == 'windows-874') {
>>             $bodytext  = iconv('WINDOWS-874', 'UTF-8', $bodytext);
>>              }
>>
>> But how to decode subject? Tickets titles are illegible when converted
>> from WIN874
>>
>> Help appreciated
>>
>> Tony
>>
>> _______________________________________________
>> http://www.vtiger.com/
>>
>
>
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20180409/aa89d488/attachment.html>


More information about the vtigercrm-developers mailing list