myhere

export chart data charset problem on non-english character

Recommended Posts

Hi i am new on fusionchart. and i have a charset problem when export chart data to xls ( everything works well but only when export xls characters not displayed right )

my sample html code is .

---------------------------------------

 

<html>
<head>
<title>My first chart using FusionCharts Suite XT</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<script type="text/javascript" src="https://static.fusioncharts.com/code/latest/fusioncharts.js"></script>
<script type="text/javascript" src="https://static.fusioncharts.com/code/latest/themes/fusioncharts.theme.fint.js?cacheBust=56"></script>
<script type="text/javascript" charset="UTF-8">

FusionCharts.ready(function() {
    var fusioncharts = new FusionCharts({
        "type": "column2d",
        "renderAt": "chart-container",
        "width": "500",
        "height": "300",
        "dataFormat": "xmlurl",
        "dataSource": "x1.php"
    });
    fusioncharts.render();
});

</script>
</head>
<body>
  <div id="chart-container">FusionCharts XT will load here!</div>
</body>
</html>

 

------------------------

than my x1.php file code is

----

 

<?php
header('Content-type: text/xml');

echo pack("CCC",0xef,0xbb,0xbf); //adding BOM characters
?>
<chart caption="Harry&#39;s SuperMart" subcaption="Last year" xaxisname="Month" yaxisname="Amount (In USD)"  canvasbgalpha="0" bgcolor="#DDDDDD" bgalpha="50" theme="fint" exportenabled="1" exportformats="PNG=Export as High Quality Image|PDF=Export as Printable|XLS=Export Chart Data" exporttargetwindow="_self" exportfilename="Monthly_Revenue">
<set label="&#220;niversite" value='420000' />
<set label="Üniversite" value='720000' />

<set label="Fıstıkçı Şahap" value='720000' />

<set label='le fran&#231;ais' toolText='February' value='3760000' />
</chart>

-------

and i add screenshots of chart and xls format.

and sorry about my english :(

could you help me on this problem.

 

thnks

 

 

Screenshot_2.png

Screenshot_1.png

Screenshot_3.png

Edited by myhere

Share this post


Link to post
Share on other sites
4 minutes ago, Ayan Bhadury said:

Hi,

The issue has been already logged, our engineering team is working on it, we will get back to you with the updates once it's fixed. 

okey thnks 

when is it been fixed. i need to works export data to finish my project :(

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now