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.
I think the code which converts cyrillic to this garbage is somewhere in 'parent::save()' subroutine called from modules/Emails/Email.php: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'
But I don't understand what is 'parent' here and how I can find this subroutine. Can you help me?Code:function save($check_notify = false) { $GLOBALS['log']->debug('-------> Email called save()'); parent::save($check_notify); }
SugarCRM is 4.2.0 with russian localization. All MySQL tables are in utf8.


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks