فهرست منبع

Fixed issues with accentuated characters in the graphs (bars or pie) - added a comment

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2212 a333f486-631f-4898-b8df-5754b55c2be0
romainq 12 سال پیش
والد
کامیت
ea3f0d7a3f
1فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 4 1
      application/displayblock.class.inc.php

+ 4 - 1
application/displayblock.class.inc.php

@@ -999,7 +999,10 @@ EOF
 				// The title has been given in an url, and urlencoded...
 				// and urlencode transforms utf-8 into something similar to ISO-8859-1
 				// Example: é (C3A9 becomes %E9)
-				// Let's transform back into utf-8 !
+				// As a consequence, json_encode (called within open-flash-chart.php)
+				// was returning 'null' and the graph was not displayed at all
+				// To make sure that the graph is displayed AND to get a correct title
+				// (at least for european characters) let's transform back into utf-8 !
 				$sTitle = iconv("ISO-8859-1", "UTF-8//IGNORE", $aExtraParams['chart_title']);
 
 				// If the title is a dictionnary entry, fetch it