FusionCharts Forum: Ampersand within label - %26 not working - FusionCharts Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Ampersand within label - %26 not working

#1 User is offline   spectrum 

  • Forum Newbie
  • Group: Members
  • Posts: 7
  • Joined: 06-October 09

Posted 05 November 2009 - 01:59 PM

I want to display an ampersand character within a graph label.  I am setting the XML as follows: <set name='A %26 B' value='22'/>  The %26 appears unchanged within the rendered graph.  I have also tried %2526 and %26amp;  Can anyone help?

I have just downloaded the latest version of FusionCharts Free.

Thanks very much

0

Other Replies To This Topic

#2 User is offline   Madhumita 

  • Supreme Being
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1434
  • Joined: 04-September 09

Posted 05 November 2009 - 11:21 PM

Hello,

Could you please check if your XML is UTF-8 encoded?

ref:- http://www.fusioncharts.com/docs/?SpChar_Amp.html

Hope this helps. ;)

Regards,
Madhumita Chakraborty

Follow us on Twitter :)
0

Other Replies To This Topic

#3 User is offline   spectrum 

  • Forum Newbie
  • Group: Members
  • Posts: 7
  • Joined: 06-October 09

Posted 06 November 2009 - 03:14 AM

Hi, I encoded the XML as you suggested, using the following code:

byte[] utf8bytes=Encoding.UTF8.GetBytes(chartXml.ToString());

xml.LoadXml(System.Text.UTF8Encoding .UTF8.GetString(utf8bytes));

It has made no difference - still shows label as 'A %26 B' instead of 'A & B'

Help!;)


0

Other Replies To This Topic

#4 User is offline   Madhumita 

  • Supreme Being
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1434
  • Joined: 04-September 09

Posted 06 November 2009 - 03:21 AM

Hello,

Could you please attach your codes so that we can run a test on them?

Apologies for the inconvenience.

Awaiting your reply. ;)

Regards,
Madhumita Chakraborty

Follow us on Twitter :)
0

Other Replies To This Topic

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic