Sign in to follow this  
ZM

Xml Issue

Recommended Posts

Hi There,

I am using the ScrollLine2d.swf and doing the following

1) using XSL to create a string that has the chart

2) using json to send the data to the browser

3) using setDataXML method to render the chart.

My labels on the axis appear to work on other charts but it renders the chart with the escape chars e.g. I use ' in the xml and it renders it as just that. Can you please help. I have a project due this week. I am attaching the xml file to look at. Please refer to the attribute YAxisName.

PLease help!

testRadius.xml

Share this post


Link to post
Share on other sites
Guest Rajroop

Hello,

 

 

 

Could you specify which character you are trying to display by using #39?

 

 

 

Also, could you set the BOM?

 

 

 

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. :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this