VWuser Report post Posted April 24, 2009 We use Fusion charts > MSColumnLine3D (trial version) in our Flex application The chart is created dynamically on user generated event. Once the chart is created, the screen data (unicode - utf 8) gets corrputed - the user sees junk characters. This behaviour is seen consistently when the chart gets created. We confirmed the problem with Fusioncharts by removing the chart control from the action script and verified that the application data is shown correctly in flex controls. Not sure if Fusion charts supports unicode data. If so, why are we getting this problem. The as code below shows the creation logic: { .... var fus:FusionCharts = new FusionCharts(); fus.width = 900; fus.height = 300; fus.FCChartType="MSColumnLine3D"; fus.FCDataXML = event.result.toString(); this.ChartSection.removeChildAt(0); //remove label control.. this.ChartSection.addChild(fus); ... } Is there some help? Share this post Link to post Share on other sites
FusionCharts Support Report post Posted April 27, 2009 Hi, In our labs the UTF 8 characters are woking fine. Could you please send us thtr code the you are using? Please attache here. Share this post Link to post Share on other sites
VWuser Report post Posted April 28, 2009 Hi, Thanx for your response. We have attached a sample war file which a Flex Application that loads some header fields from a JSP on click of a button. On click of another button an instance of Fusion Chart gets created and the data is loaded from an xml file. After loading of the application and clicking on the button 'Fetch Data' retrives the German data and renders it. This works fine on any number of clicks. When 'Create Chart' button is clicked the chart gets created and renders the German data. Now if you click on the 'Fetch Data' button the data that gets rendered to the controls has junk characters. Note: The sample war is available inside the attached zip file - HttpSample.zip Source files for the above sample is available in - Source.zip Request you to provide a solution for this issue. Regs, VWUser HttpSample.zip Source.zip Share this post Link to post Share on other sites
VWuser Report post Posted April 28, 2009 Hi, Thanx for your response. We have attached a sample war file which a Flex Application that loads some header fields from a JSP on click of a button. On click of another button an instance of Fusion Chart gets created and the data is loaded from an xml file. After loading of the application and clicking on the button 'Fetch Data' retrives the German data and renders it. This works fine on any number of clicks. When 'Create Chart' button is clicked the chart gets created and renders the German data. Now if you click on the 'Fetch Data' button the data that gets rendered to the controls has junk characters. Note: The sample war is available inside the attached zip file - HttpSample.zip Source files for the above sample is available in - Source.zip Request you to provide a solution for this issue. Regs, VWUser HttpSample.zip Source.zip Share this post Link to post Share on other sites
VWuser Report post Posted April 29, 2009 Dear Sudipto Choudhury, We have attached a sample for simulating the UTF-8 characters issue in our earlier mail and would like to know if you need anyother information. We would also like to know the current status of the issue as we wanted to buy the license based on this test. Regs, VWUser Share this post Link to post Share on other sites
FusionCharts Support Report post Posted April 29, 2009 Hi, Our Flex developer is looking into this and would let you know. Share this post Link to post Share on other sites
rishin.goswami Report post Posted April 29, 2009 (edited) Hi, You can solve your problem by encoding the chart XML file with a byte order mark (BOM). To get your sample application running, please replace the DataXML.xml file with the one provided here. You can learn more about using UTF-8 chracters in FusionCharts for Flex in the documentation at Special Cases > Multilingual Characters in Charts. DataXML.xml Edited April 29, 2009 by Guest Share this post Link to post Share on other sites
VWuser Report post Posted April 30, 2009 Dear Rishin Goswami, Thanx for your response. We have used the DataXML.xml file which you have attached and it works fine. We have another case where the data for the chart is returned by a JSP and it has UTF-8 characters in it and gets loaded to the chart using FCDataXML property. So can you tell us how to add BOM data to the chart data which is returned in the JSP. Regs, VWUser Share this post Link to post Share on other sites
VWuser Report post Posted May 2, 2009 We have gone thru many articles regarding this issue and the solution given is for dataURL option where the chart data is loaded using a XML file which has BOM mark in it. So can anyone pls confirm that UTF-8 data can be loaded only using FCDataURL property from a xml file and not by using FCDataXML property from a datasource like JSP file. As the data which has to be rendered is dynamic we have followed the approach of calling a JSP file which returns the UTF-8 data. If this approach wont work we have to change our implementation to create a physical xml file and load the chart data using FCDataURL propery. Regs, VWUser Share this post Link to post Share on other sites
FusionCharts Support Report post Posted May 4, 2009 Hi, There can be many ways. 1. Have the file containing the JSP code having BOM. 2. If not add BOM manually using JSP code. response.setContentType( "text/xml; charset=UTF-8" ); OutputStream outs = response.getOutputStream(); outs.write( new byte[]{(byte)0xEF, (byte)0xBB, (byte)0xBF} ); outs.flush(); Share this post Link to post Share on other sites
Guest Rajroop Report post Posted July 3, 2009 Hello VWUser , We are really excited to announce the release of FusionCharts for Flex v1.1 featuring the following: - 12 new chart types: 7 new gauges including Angular gauge, LED gauge and Linear gauge, Spark chart and Bullet graphs have been added. - All the gauges can fetch data in real-time and come with alert managers and message loggers. - All the charts and gauges can now be natively exported as images and PDFs. - The data for all the charts can be exported as CSV. - Data sets can now have custom text labels instead of numeric values. - The charts can handle a lot more events to help you manipulate them better. - Trendlines can also have custom tool-text. - Custom color palettes can be defined for the data plots. Learn more about it from www.fusioncharts.com/flex. and learn what's new in FusionCharts for Flex from http://www.fusioncharts.com/flex/VersionHistory.asp. Existing customers can upgrade to the new version from www.fusioncharts.com/PUC. Share this post Link to post Share on other sites