Results 1 to 6 of 6

Thread: Inbound e-mail charset problem.

  1. #1
    fobus is offline Junior Member
    Join Date
    Feb 2012
    Posts
    3

    Default Inbound e-mail charset problem.

    Hello,

    I'm trying to setup sugar crm on my server. Every thing is good except of inbound emails. There is a problem about charset, Turkish special characters doesn't show correct.

    My database uses utf-8

    Here is a part of config.php
    Code:
      'default_email_charset' => 'UTF-8',
      'default_email_client' => 'sugar',
      'default_email_editor' => 'html',
      'default_export_charset' => 'UTF-8',
    And screenshot is attached.
    On the part that e-mails listed is every thing OK, but at bottom part there is charset problem.

    Do you have an idea about fixing this problem?
    Attached Images Attached Images  

  2. #2
    fobus is offline Junior Member
    Join Date
    Feb 2012
    Posts
    3

    Default Re: Inbound e-mail charset problem.

    Can't anybody help me?

  3. #3
    florsery is offline Junior Member
    Join Date
    Feb 2012
    Posts
    5

    Default Re: Inbound e-mail charset problem.

    Hello everybody
    I encounter the same problem here, with 6.4CE. Everything displays ok in the list (sender, subject), but when clicked the same e-mail is displayed in the lower pane with artifacts instead of special characters. Any help or advice would be appreciated !
    By the way, it is a fresh install and my first approach of SugarCRM: kudos to the team for this very nice and complete CRM software.

  4. #4
    fobus is offline Junior Member
    Join Date
    Feb 2012
    Posts
    3

    Default Re: Inbound e-mail charset problem.

    I think I could fix the problem.
    In /modules/Emails/EmailUIAjax.php file
    Find
    Code:
    $json->encode(utf8_recursive_encode($out));
    on line 694 and replace it with
    Code:
    header("Content-Type: application/json; charset=UTF-8");
    echo json_encode($out);
    This code could pass the massages from hotmail, gmail but doesn't work for thunderbird messages.

  5. #5
    florsery is offline Junior Member
    Join Date
    Feb 2012
    Posts
    5

    Default Re: Inbound e-mail charset problem.

    Thanks for your suggestion. I tried it but it's not the fix I was looking for: I only use thunderbird and Sugar / FF for accessing the mailboxes. I will do more testing when I'll have time.
    By the way, it seems that a bug report has been filled for this issue: SugarCRM Bug Tracker | Open Source Business & Social CRM - SugarCRM

  6. #6
    vitaliyvg is offline Junior Member
    Join Date
    Jan 2012
    Posts
    1

    Cool Re: Inbound e-mail charset problem.

    Quote Originally Posted by florsery View Post
    Hello everybody
    I encounter the same problem here, with 6.4CE. Everything displays ok in the list (sender, subject), but when clicked the same e-mail is displayed in the lower pane with artifacts instead of special characters. Any help or advice would be appreciated !
    By the way, it is a fresh install and my first approach of SugarCRM: kudos to the team for this very nice and complete CRM software.
    Problem fix.
    Error found in crm/modules/InboundEmail/InboundEmail.php
    line 3098
    Code:
    if(is_array($upperCaseKeyDecodeHeader['CONTENT-TYPE']) && isset($upperCaseKeyDecodeHeader['CONTENT-TYPE']['charset']) && !empty($upperCaseKeyDecodeHeader[$upperCaseKeyDecodeHeader['CONTENT-TYPE']]['charset'])) {
    replace on
    Code:
    if(is_array($upperCaseKeyDecodeHeader['CONTENT-TYPE']) && isset($upperCaseKeyDecodeHeader['CONTENT-TYPE']['charset']) && !empty($upperCaseKeyDecodeHeader['CONTENT-TYPE']['charset'])) {

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Inbound-Mail-Problem
    By fraxinus in forum Deutsche
    Replies: 10
    Last Post: 2010-10-27, 04:25 PM
  2. Problem with inbound Mail
    By grossw in forum Help
    Replies: 0
    Last Post: 2006-07-05, 10:32 AM
  3. problem inbound mail
    By suruchi in forum Developer Help
    Replies: 0
    Last Post: 2006-03-28, 09:48 AM
  4. Inbound/Outbound: charset setting in mailbox
    By ruchida in forum Feature Requests
    Replies: 3
    Last Post: 2006-02-26, 02:59 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •