Results 1 to 2 of 2

Thread: Email module and utf8 encoding

  1. #1
    klinok is offline Junior Member
    Join Date
    Jul 2006
    Posts
    4

    Default Email module and utf8 encoding

    I have a problem when importing mail using Outlook plugin. All non-latin characters (cyrillic) are converted to "?????? ???? ????"-like strings.

    I found that soap.php receives correct utf8 string ($PHP_RAW_POST_DATA contains it), but with loglevel 'info' I see that INSERT directive contains "???????" already.

    Code:
    Fri Jul  7 14:49:22 2006,614 [6362] DEBUG SugarCRM -------> Email called save()
    
    Fri Jul  7 14:49:22 2006,616 [6362] INFO SugarCRM - Insert: INSERT into emails
    set id='961736b8-7bf4-85bc-4df2-44ae4accb894', date_entered='2006-07-07 11:49:22',
    date_modified='2006-07-07 11:49:22', assigned_user_id='1', modified_user_id='1',
    created_by='1', name='?????? ???????????? ???????? ? ???? ?? ???????? 45.',
    date_start='2006-07-06', time_start='09:06',
    description='?????? ????, ???????? 45, ???? ?? ??????? ? ????????????.\n',
    from_name='Some User', to_addrs='Other User', type='archived',
    status='archived', deleted='0'
    I think the code which converts cyrillic to this garbage is somewhere in 'parent::save()' subroutine called from modules/Emails/Email.php:

    Code:
    function save($check_notify = false) {
           $GLOBALS['log']->debug('-------> Email called save()');
           parent::save($check_notify);
    }
    But I don't understand what is 'parent' here and how I can find this subroutine. Can you help me?

    SugarCRM is 4.2.0 with russian localization. All MySQL tables are in utf8.

  2. #2
    pesce is offline Member
    Join Date
    May 2006
    Posts
    5

    Default Re: Email module and utf8 encoding

    I have a similar error. I need to get e-mails with ISO-8859-1 encoding because when I get spanish charcters (like á é o ñ) I get ? instead of four letters.

    Do I have to change the encoding on InbounEmail.php? How?

    Thanks,

    Enrique

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
  •