I am trying to use FusionCharts in pages served from Django. The FusionChart object gets the chart definition and data from a URL you specify. The URL must return an XML document in their format.
I create the page and the XML document from Django using the templating system fine except that FusionCharts doesn't decode XML documents encoded in the default UTF-8 encoding. It apparently ignores the <?xml ?> line and treats it as ascii (or some other SBCS). Their solution is to require a BOM at the beginning of the document which I can't figure out how to do from Django. I found some posts on the developer mailing list from several years ago but I'm not sure they were relevant (and there didn't seem to be a solution). I tried putting a BOM in the template file and well as using a variable set to u"\xef\xbb\xef" but it either gets ignored (not in the rendered content) or gets mangled after returning (probably in the UTF-8 encoding the the fcgi/wsgi handler. I'd appreciate any insight! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---