neosoro Report post Posted July 10, 2009 Hi People, I'm from Brazil and beginning with Fusion Charts. I'm trying to generate a Chart but I'm having a problem with accent ( Share this post Link to post Share on other sites
Rahul Kumar Report post Posted July 11, 2009 (edited) Hi Rodrigo, To insert the accent characters you would need to first add BOM characters to the file after that need to encode your string with utf8_encode() function. Please see the following code for an example: $fp = fopen("relatorios/DataXMLFusion.xml" , "w"); $fw = fwrite($fp, "xEFxBBxBF"); $fw = fwrite($fp,utf8_encode($xml)); Hope this helps. Edited July 11, 2009 by Guest Share this post Link to post Share on other sites
neosoro Report post Posted July 14, 2009 Thank you so much! You saved my life heheheheheheheheheh. Actually your tip it was a little bit wrong. I've changed and it works. If someone have the same trouble it is just add at the beginning of the code: $xml = "xEFxBBxBF"; And in script that generate the file: $fw = fwrite($fp,utf8_decode($xml)); It's to decode the string to print on the screen, but I have to thank Mr. Rahul Kumar for help me to see my error. Thanks again! Rodrigo Nascimento Share this post Link to post Share on other sites
Rahul Kumar Report post Posted July 14, 2009 Hi Rodrigo, You are most WelCome :hehe: . Share this post Link to post Share on other sites