Amrita Report post Posted June 8, 2010 Hi, How to do internationalization in fusion chart?I am trying to display japanese characters in my chart.I have a unicode string for example "u3053u306eu30bfu30b9" like this. Fusion chart displays this string as it in chart when I expects some japanese data.What should I do so that this string does get encoded well.while searching on this topic I found that some BOM stamp need to be added in your script but I have no idea how and where to add this stamp. I am using dataxml method with swf file. Using jsp to display fusion charts. Thanks, Share this post Link to post Share on other sites
Guest Basundhara Ghosal Report post Posted June 8, 2010 Hi Amrita, As you have already stated to use multi-lingual characters on the chart, you necessarily need to use UTF-8 encoded XML. More importantly, the XML file/stream does require a BOM stamp to be present as the very first 3 Bytes of the file. Hence, one must remember the two basic thumb rules : for dataURL method - the XML file/stream should be having the BOM stamp and for dataXML method - the HTML/application file containing the XML as well as the chart SWF should have the BOM stamp. In static XML For the XML files which are generated one-time and remains static, you can manually insert a BOM mark. This method is applicable when data is retrieved from file using the dataURL method. All you have to do is make sure the file containing the XML data contains a BOM mark or specify one if it is absent. In order to specify a BOM mark, follow these steps: Open the file in question in a text-editor that supports UTF-8 encoding with BOM stamp (Example Share this post Link to post Share on other sites
Amrita Report post Posted June 8, 2010 OK,So you mean scirpt file should have BOM stamp when we are using dataXML method. Can you please write a format of BOM stamp or give me a example script that have BOM stamp added in it? Thanks for your prompt reply. Share this post Link to post Share on other sites
Guest Basundhara Ghosal Report post Posted June 8, 2010 (edited) Hi Amrita, Just like adding BOM stamp to a static XML files, in this case too you would need to save the file containing the chart SWF and XML with BOM stamp. This needs to be done when the script/HTML file is created for the first time before you start coding in it. Please refer to the link below for the detailed process on the same:- Ref.- http://www.fusioncharts.com/docs?/SpChar.html Edited June 8, 2010 by Guest Share this post Link to post Share on other sites