View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
---|---|---|---|---|---|---|---|---|---|
0000733 | v2.3 Release (Closed) | [All Projects] General | public | 2011-02-27 11:14 | 2011-03-24 09:52 | ||||
Reporter | gioalhaz | ||||||||
Assigned To | caseydk | ||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | closed | Resolution | duplicate | ||||||
Product Version | |||||||||
Target Version | Fixed in Version | 2.3 | |||||||
Summary | 0000733: utf rendering in gantt chart generates ??? symbols | ||||||||
Description | The previous issues that I report about were utf encoding in database. When I correct this issue (change database table encoding and change some code to specify utf encoding for connection) I hope that gantt chart will render Georgian alphabet correctly. But No. This didn't help. After little investigation I found incorrect code in you sources. Let take file modules\projects\gantt.php . Find code ============== if ($locale_char_set == 'utf-8') { $name = strlen(utf8_decode($p['project_name'])) > 25 ? substr(utf8_decode($p['project_name']), 0, 22) . '...' : utf8_decode($p['project_name']); } else { //while using charset different than UTF-8 we need not to use utf8_decode $name = strlen($p['project_name']) > 25 ? substr($p['project_name'], 0, 22) . '...' : $p['project_name']; } ============== As you see, you use utf8_decode in case when locale charset is utf. But you do not need to do it. Just change change part above with my version: $name = mb_strlen($p['project_name']) > 25 ? mb_substr($p['project_name'], 0, 22) . '...' : $p['project_name']; | ||||||||
Tags | No tags attached. | ||||||||
Attached Files |
|
![]() |
|||||||||||||
|
![]() |
|
eureka (reporter) 2011-02-27 14:53 |
hi gioalhaz, gantt.php was rewritten for version 2.3 : http://web2project.svn.sourceforge.net/viewvc/web2project/trunk/modules/projects/gantt.php?revision=1652&view=markup utf8_decode is no longer used ;) |
caseydk (administrator) 2011-02-27 17:53 |
RobertBasic has made some major updates here too: https://github.com/robertbasic/web2project/commits/ganttunicode |
caseydk (administrator) 2011-03-07 16:45 |
This is so close to 0000727 that I'm closing it as a dupe. The Unicode updates help out quite a bit of this problem but not all of it. |
caseydk (administrator) 2011-03-24 09:52 |
Closed in preparation for v2.3 release. |
![]() |
|||
Date Modified | Username | Field | Change |
---|---|---|---|
2011-02-27 11:14 | gioalhaz | New Issue | |
2011-02-27 14:53 | eureka | Note Added: 0001695 | |
2011-02-27 17:50 | caseydk | Status | new => assigned |
2011-02-27 17:50 | caseydk | Assigned To | => caseydk |
2011-02-27 17:50 | caseydk | Project | v2.2 Release (Closed) => v2.3 Release (Closed) |
2011-02-27 17:50 | caseydk | Relationship added | child of 0000429 |
2011-02-27 17:53 | caseydk | Note Added: 0001696 | |
2011-03-07 16:44 | caseydk | Relationship added | duplicate of 0000727 |
2011-03-07 16:45 | caseydk | Note Added: 0001709 | |
2011-03-07 16:45 | caseydk | Duplicate ID | 0 => 727 |
2011-03-07 16:45 | caseydk | Status | assigned => resolved |
2011-03-07 16:45 | caseydk | Resolution | open => duplicate |
2011-03-24 09:52 | caseydk | Note Added: 0001782 | |
2011-03-24 09:52 | caseydk | Status | resolved => closed |
2011-03-24 09:52 | caseydk | Fixed in Version | => 2.3 |