|
|
|
Forum 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='“Fraternité”' />
</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.
|
|
|
|
|
Forum 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.
|
|
|
|
|
FusionCharts 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
|
|
|
|