Results 1 to 5 of 5

Thread: 4.5: Email msg truncated after special european chars -- handleCharsetTranslation())

  1. #1
    dvandewetering is offline Sugar Community Member
    Join Date
    Sep 2006
    Location
    Netherlands
    Posts
    27

    Default 4.5: Email msg truncated after special european chars -- handleCharsetTranslation())

    Email messages that use special european characters are being truncated, and the next error is in the logfile:


    Sat Sep 23 17:35:01 2006,498 [72831] FATAL SugarCRM - ***ERROR: InboundEmail::handleCharsetTranslation() called without a $charset!
    Sat Sep 23 17:35:01 2006,510 [72831] FATAL SugarCRM - ***STACKTRACE: Array


    Can somebody tell me what to change, and where?

  2. #2
    malcolmh's Avatar
    malcolmh is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Aug 2004
    Posts
    1,712

    Default Re: 4.5: Email msg truncated after special european chars -- handleCharsetTranslation

    Quote Originally Posted by dvandewetering
    Email messages that use special european characters are being truncated, and the next error is in the logfile:


    Sat Sep 23 17:35:01 2006,498 [72831] FATAL SugarCRM - ***ERROR: InboundEmail::handleCharsetTranslation() called without a $charset!
    Sat Sep 23 17:35:01 2006,510 [72831] FATAL SugarCRM - ***STACKTRACE: Array


    Can somebody tell me what to change, and where?
    Look at this post :

    http://www.sugarcrm.com/forums/showt...ial+characters

    from HendrikE, #23. This seems to solve the problem
    Cheers Malcolm

    Genius4U Limited - Ingenious simple IT solutions for you / Genial einfache IT Lösungen für Sie
    http://www.genius4u.com or http://www.genius4u.de

  3. #3
    dvandewetering is offline Sugar Community Member
    Join Date
    Sep 2006
    Location
    Netherlands
    Posts
    27

    Default Re: 4.5: Email msg truncated after special european chars -- handleCharsetTranslation

    This is not working for me, since I am on 4.5 already and the code is already in there!
    When the special character is in the subject, it's not a problem though... strange!

    ... and this is the part the causes the error:

    function handleCharsetTranslation($text, $charset) {
    if(empty($charset)) {
    $GLOBALS['log']->fatal("***ERROR: InboundEmail::handleCharsetTranslation() called without a \$charset!");
    $GLOBALS['log']->fatal("***STACKTRACE: ".print_r(debug_backtrace(), true));
    return $text;
    }

    (module: InboundEmail.php)


    But doesn't that say that it has to log something when the Charset is empty?
    Last edited by dvandewetering; 2006-09-26 at 04:19 PM.

  4. #4
    malcolmh's Avatar
    malcolmh is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Aug 2004
    Posts
    1,712

    Default Re: 4.5: Email msg truncated after special european chars -- handleCharsetTranslation

    Try the attached file which has the line changed as described in the forum post, this resolved our problems. We were also experiencing the same problem, special characters were appearing correctly in the subject but not in the body

    Copy to modules/InboundEMail/InboundEmail.php
    Attached Files Attached Files
    Cheers Malcolm

    Genius4U Limited - Ingenious simple IT solutions for you / Genial einfache IT Lösungen für Sie
    http://www.genius4u.com or http://www.genius4u.de

  5. #5
    dvandewetering is offline Sugar Community Member
    Join Date
    Sep 2006
    Location
    Netherlands
    Posts
    27

    Default Re: 4.5: Email msg truncated after special european chars -- handleCharsetTranslation

    Malcolm, my German neighbour... you're a true friend--it worked!

    I added the extra lines to solve 01-01-2000 date issue again, and now it just works!
    Amazing!

    Thanks!

Thread Information

Users Browsing this Thread

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

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
  •