Ticket #5201 (closed defect: duplicate)

Opened 2 years ago

Last modified 1 year ago

utf-8 characters not being displayed in webmail body

Reported by: puneeth Assigned to: vikas
Priority: major Milestone: 5.1.0
Component: vtigercrm Version: 5.1.0-val1
Keywords: Cc:

Description

If there are any utf-8 characters in e-mail body, they are not being displayed properly .

Steps to re-produce :

1) Send an e-mail with utf-8 characters in subject line & body.

2) When you configure webmail and open the e-mail, in subject line the utf-8 characters will appear but not in the mail body.

I have attached a snapshot.

Regards, Puneeth.

Attachments

webmail-utf8.JPG (61.4 kB) - added by puneeth on 03/05/08 04:30:13.

Change History

03/05/08 04:30:13 changed by puneeth

  • attachment webmail-utf8.JPG added.

03/05/08 04:33:19 changed by prasad

Here is a fix:

File: modules\Webmails\body.php

Change the line:

$content['body'] = $email->body;

to

$content['body'] = utf8_encode(imap_utf8(($email->body)));

03/06/08 00:24:51 changed by don

  • owner changed from developer to srini.

03/06/08 11:46:30 changed by srini

  • milestone changed from 5.0.4 to 5.1.0.

Hi Prasad,

This issue is inconsitent and differ server to server. If i use the above fix then the german characters not working in my setup. So it will be better to take this issue on later version. In mean time we can look for a common fix which will suit on all scenarios.

Thanks, Srini

04/16/08 12:31:43 changed by prasad

Charset setting is being missed out! Check out the post: http://forums.vtiger.com/viewtopic.php?p=64292#64292

03/02/09 04:24:48 changed by joebordes

  • version changed from 5.0.4 to 5.1.0-val1.

The same problem is still present in 5.1 Val 1 The same solution given in the forum thread is valid

03/02/09 05:06:23 changed by asha

  • owner changed from srini to vikas.

03/17/09 06:37:19 changed by musavir

related to #5329

03/31/09 05:19:11 changed by prasad

  • status changed from new to closed.
  • resolution set to duplicate.