Closed (fixed)
Project:
Project issue tracking
Version:
5.x-2.x-dev
Component:
User interface
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Jan 2007 at 13:17 UTC
Updated:
14 May 2007 at 20:36 UTC
In list of issues long names are truncated. And if I use utf8 with simbols which are encoded in multiple bites, they sometimes are splitted in the middle of the simbol.
Screenshoot is atached to the bug report.
Example of this bug you can see on this page:
http://304.ru/drupal/?q=project/issues&states=1,2,8,13,14,4
Thanks.
| Comment | File | Size | Author |
|---|---|---|---|
| dr.png | 18.59 KB | KiberGus-1 |
Comments
Comment #1
KiberGus-1 commentedin issue.inc on line 1498 change "substr" to "mb_substr", like this:
$row[] = l(mb_substr($node->title, 0, 50), "node/$node->nid") . theme('mark', node_mark($node->nid, $node->changed));It would only work if you have mbstring extension, so it's better to add check for this extension and use it, if possible.
Comment #2
dwwthanks for taking a stab at this. however, this isn't a patch. see http://drupal.org/node/22568, http://drupal.org/patch or http://drupal.org/diffandpatch.
also, i'm not going to commit code that directly depends on mb extensions for php. so, when working on a real patch for this, please include that check, then i'd consider committing this.
cheers,
-derek
Comment #3
dwwdoq posted a better patch for this:
http://drupal.org/files/issues/project_issue%20incorrect%20Unicode%20han...
via the duplicate: http://drupal.org/node/138020
Comment #4
dwwafter further review and testing, committed doq's patch to HEAD, DRUPAL-4-7--2 and DRUPAL-4-7
Comment #5
dries commented