Hi Denys,<br><br>To use mb_strlen and mb_substr you need to enable mb_string php extension.<br><br>Also check out this library: <a href="http://phputf8.sourceforge.net/">http://phputf8.sourceforge.net/</a> which has wrapper functions: <a href="http://phputf8.sourceforge.net/#String_Functions">http://phputf8.sourceforge.net/#String_Functions</a><br>
<br>If you work with this, kindly let us know your observations in more details.<br><br>Good luck.<br><br>Regards,<br>Prasad<br><br><br><div><span class="gmail_quote">On 3/25/08, <b class="gmail_sendername">????? ???????</b> <<a href="mailto:denis0712@mail.ru">denis0712@mail.ru</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi all!<br> <br> <br> I'm using vtiger CRM 5.0.4 with Russian language Pack.<br> <br> I've noticed a bug in "\modules\Leads\ListViewTop.php" on line 115:<br> <br> $Top_Leads = (strlen($lead['leadname']) > 20) ?<br>
(substr($lead['leadname'],0,20).'...') : $lead['leadname'];<br> <br> Neither "substr" nor "strlen" work correct with Unicode chars.<br> <br> I found a solution, to use mb_strlen and mb_substr. Is it suitable to use<br>
this functions or there are some other suggestions how to fix it?<br> <br> <br> <br> <br> <br> <br> Best regards,<br> Denys Potapov<br> <br> _______________________________________________<br> <br>Reach hundreds of potential candidates - <a href="http://jobs.vtiger.com">http://jobs.vtiger.com</a><br>
</blockquote></div><br>