April 27, 201015 yr Hello I'm using FusionCharts Free to include charts in a FileMaker 9 application. So I have to create 2 files, an html one an an xml one, the last containing datas from my database. To create the xml file I use the following code Define variable($xml_code;" " Then, in a second time I use the SMaster function to write that file as data.xml //This simple version uses utf-8 //new File( filePath ).write( textToWrite ); //This more advanced version allows you to specify the character encoding OutputStreamWriter writer = new OutputStreamWriter( new FileOutputStream( filePath ), "utf-8" ); writer.write( textToWrite ); writer.close(); return true; It works but when the html takes the data.xml, all accented chars are not correct as you see on the screen copy; I've read that it was because there were not the BOM in the data.xml file. But I don't know how to include it from FileMaker. Thanks for your help Noël I've just found a solution (perhaps it's not the best and I don't mark that question as solved) replace utf-8 by 8859_1 in the script of SM.. Edited April 27, 201015 yr by Guest
April 27, 201015 yr Noel, if that fixed it, then I suspect that the library that was generating the charts is incompatible with UTF-8. In that case, your fix is probably the best option.
April 27, 201015 yr Author Hello, I'm not strong enough to verify your idea ! The product used is FusionCharts in its free version... So, I'll stay on my way to fix my problem. Thanks Noël
Create an account or sign in to comment