Graph stats doesn't support utf8 characters

Bug #741752 reported by Quentin Estoppey
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Eventum
Won't Fix
Low
Unassigned

Bug Description

In stats_chart.php, you have to add utf8_decode functions for graph titles and lables. Otherwise ther aren't dispayed correctly.
Ex lines 70-80 :
$graph_title = utf8_decode(ev_gettext("Issues by Priority"));
$graph_title = ev_gettext("Issues by Assignment");
$graph_title = utf8_decode(ev_gettext("Issues by Category"));

$labels[] = utf8_decode($label) . ' (' . $count . ')';

tags: added: utf8
tags: added: characters coding graphs
Revision history for this message
Elan Ruusamäe (glen666) wrote :

using utf8_decode() assumes your data can be presented in latin1 (iso8859-1) charset.

correct fix would be to teach jpgraph utf8 data, not convert data to latin1

Revision history for this message
Elan Ruusamäe (glen666) wrote :

otoh, it would work fine if you just put unicode compatible ttf font files to lib/jpgraph/ttf dir:

verdana.ttf
verdanabd.ttf

(just those filenames, fonts themselves can be other)

Revision history for this message
Elan Ruusamäe (glen666) wrote :

can't do much here, other than suggest using unicode .ttf font

Changed in eventum:
importance: Undecided → Low
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.