ALProdhani Report post Posted March 2, 2010 FusionChart working with Arabic properly in development.When i make war file and put it to Tomcat webApps.After startting tomcat, FusoinChart displaying junk value like ????. Can any1 is there to help me out? Process: 1.Making xml file from DB and sending as a string. 2.setting ContentType As [text/xml; charset=UTF-8] String xmlChart = string of xml file. ServletOutputStream str = response.getOutputStream(); str.write(new byte[]{(byte)0xEF, (byte)0xBB, (byte)0xBF}); str.write(xmlChart.getBytes()); str.flush(); working properly in Eclipse environment. Share this post Link to post Share on other sites
srividya_sharma Report post Posted March 2, 2010 Hi Can you please modify your code to add the following line: ServletOutputStream out= res.getOutputStream(); OutputStreamWriter streamWriter= new OutputStreamWriter(out,"UTF-8"); . . . Hope this helps. Srividya Share this post Link to post Share on other sites
ALProdhani Report post Posted March 2, 2010 <code> ServletOutputStream out=response.getOutputStream(); OutputStreamWriter streamWriter= new OutputStreamWriter(out, "UTF-8");streamWriter.write(0xEF);streamWriter.write(0xBB);streamWriter.write(0xBF); streamWriter.write(xmlChart);//xmlChart is string of xml streamWriter.flush(); out.flush(); </code> Still junk values on the chart showing in the Eclipse platform. Pl help me??? Share this post Link to post Share on other sites
srividya_sharma Report post Posted March 3, 2010 Hi The xmlChart string should be UTF-8 encoded. Are you getting the data from database or is the data static or is the xml coming from a file? If the data is coming from database, please ensure that the table is UTF-8. Use getBytes to get the string from db. If you are using data from xml file, please save the file with BOM using notepad or other such editor. Please use dataURL method. Srividya Share this post Link to post Share on other sites
srividya_sharma Report post Posted March 3, 2010 Also, please note the following from the docs: FusionCharts supports only left-to-right languages as of now. It doesn't have native support for right-to-left languages like Hebrew. So, if you want to use Hebrew with FusionCharts, you'll have to programmatically change the text sequence and then provide the data to FusionCharts. Hope this helps. Share this post Link to post Share on other sites
ALProdhani Report post Posted March 3, 2010 <code> ServletOutputStream out=response.getOutputStream(); out.write( new byte[]{(byte)0xEF, (byte)0xBB, (byte)0xBF});OutputStreamWriter streamWriter= new OutputStreamWriter(out, "UTF-8");streamWriter.write(xml _of_Chart); streamWriter.flush(); out.flush(); </code> Thanks A Lot. Its working........ Share this post Link to post Share on other sites
srividya_sharma Report post Posted March 3, 2010 You are welcome. Really glad that it worked for you. Srividya Keep FusionCharting! Share this post Link to post Share on other sites
yatin baraiya Report post Posted January 24, 2012 You are welcome. Really glad that it worked for you. Srividya Keep FusionCharting! Hy madam Can you look for the my issue. see the below link http://forum.fusioncharts.com/topic/11027-yatin-1-%E2%80%93-%E2%80%93-%E2%80%93-label-is-not-display-in-fusionchart/ Here i can't upload my doc file. so i paste my full xml file which is load in the jsp. <?xml version="1.0"?> <chart labelDisplay="ROTATE" slantLabels="1" caption="Downloads (by organisation)" subCaption="" xAxisName="Organisation name" bgColor="FFFFFF" formetNumberScale="0" showYAxisValues="0" numDivLines="0" showBorder="1" canvasBorderThickness="1" canvasBorderColor="#FFFFFF" showCanvasBase="1" plotGradientColor="" placeValuesInside="0" canvasbgColor="E5F2F8"> <styles> <definition> <style name='MyCaptionFontStyle' type='font' face='Verdana' size='12' bold='1'/> <style name='myBevel' type='Bevel' angle="90" distance='1'/> </definition> <application> <apply toObject='Caption' styles='MyCaptionFontStyle' /> <apply toObject='subCaption' styles='MyCaptionFontStyle' /> <apply toObject='Canvas' styles='myBevel'/> </application> </styles> <set label='cop' value='0' /> <set label='YAHOO – – & 'YAHOO123'" – – – – – –' value='0' /> <set label='与融合的图表字符问题的' value='0' /> </chart> in the above xml's both label will display with junk character.Not support the chinse character and – – currently i am using Version: 1.2 (1st November, 2007) of fusionchart.js. help me i need solution urgently. Thanks in advance Yatin Baraiya Share this post Link to post Share on other sites
Guest Angshu Report post Posted January 24, 2012 Hi, Thanks for your post. I am afraid, the FusionCharts version you are currently using does not support chinese characters, as of now. Could you please download the latest version of FusionCharts i.e FusionCharts XT(v3.2.2) Service Release 1 from :http://www.fusioncha...ownload/trials/ ? To know about how to display multi-lingual text in your chart, please visit: http://docs.fusionch...ars/SpChar.html Hope this helps. Share this post Link to post Share on other sites