|
Substr function and unicode: msg#00036web.vtigercrm.devel
Hi all! I'm using vtiger CRM 5.0.4 with Russian language Pack. I've noticed a bug in "\modules\Leads\ListViewTop.php" on line 115: $Top_Leads = (strlen($lead['leadname']) > 20) ? (substr($lead['leadname'],0,20).'...') : $lead['leadname']; Neither "substr" nor "strlen" work correct with Unicode chars. I found a solution, to use mb_strlen and mb_substr. Is it suitable to use this functions or there are some other suggestions how to fix it? Best regards, Denys Potapov _______________________________________________ Reach hundreds of potential candidates - http://jobs.vtiger.com |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [Fwd: SVN access on forge.vtiger.com]: 00036, Eugene Babiy |
|---|---|
| Next by Date: | Re: Substr function and unicode: 00036, Prasad |
| Previous by Thread: | [Fwd: SVN access on forge.vtiger.com]i: 00036, Eugene Babiy |
| Next by Thread: | Re: Substr function and unicode: 00036, Prasad |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |