Noél Dubau Posted April 27, 2010 Posted April 27, 2010 (edited) 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, 2010 by Guest
Jesse Barnum Posted April 27, 2010 Posted April 27, 2010 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.
Noél Dubau Posted April 27, 2010 Author Posted April 27, 2010 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
Recommended Posts
This topic is 5335 days old. Please don't post here. Open a new topic instead.
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 accountSign in
Already have an account? Sign in here.
Sign In Now