Unicode + Single quotes
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Unicode + Single quotes Expand / Collapse
Author
Message
Posted 10/11/2007 7:15:36 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 10/11/2007 10:34:12 AM
Posts: 1, Visits: 3
Hi,

I am trying to use strings with unicode characters in tooltips, labels etc. on FusionCharts. Despite setting the character set and using escaping, the charting tool appears to only use something like Latin1 and not contain any characters beyond it.

This for example:

<?xml version="1.0" encoding="utf-8"?>
<chart>
<set label='a' value='10' toolText='&#8220;Fraternit&#233;&#8221;' />
</chart>


(Using UTF-8 characters directly, rather than the numeric codes above, results in complete nonsense being drawn.)

Is there any way of getting the widget to display anything more than just Latin1?

Furthermore, I observe that the XML format accepts only single quotes and no double quotes in element attributes. Honestly, that's not XML! :-( http://www.w3.org/TR/xml/

Regards,
Martin

PS. Your forum does not escape HTML tags. Please read about cross-site scripting.
Post #2684
Posted 2/24/2008 2:14:35 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 2/24/2008 2:31:58 AM
Posts: 4, Visits: 21
How do you generate your XML?

We use Java Spring + FreeMarker and discovered that Java doesn't set the utf-8 BOM that FusionCharts require.
Post #4693
Posted 2/28/2008 7:31:40 AM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts Team

Group: Administrators
Last Login: 10/3/2008 2:42:18 AM
Posts: 2,117, Visits: 498
You can use Stream Write objects and set the UTF8 flag in Java too - I am unable to recall the exact API at this moment.

Thanks,
Pallav Nadhani
FusionCharts Team
Post #4781
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -7:00, Time now is 5:19pm


Execution: 0.047.