Sign in to follow this  
sunco

Problems With Special Chars

Recommended Posts

I'm having problems displaying special chars, it just don't appear, the chars are accents, in this case áéíóú and ñÑ. With Html code is this á and javascript \u00e1 even action script %C3%B3

 

I already read and follow the instructions to create a BOM file described here http://www.fusioncharts.com/docs/SpChar.html but still no luck, maybe because i send the Xml directly

 

I'm using Dreamweaver CS4 and create a new Php file using Utf-8 and marking the BOM stuff

 

The code that i use is this. Is a Php and Javascript

 

<?

$datosXml = "<chart palette='2' caption='' showValues='0' numVDivLines='10' setAdaptiveYMin='1' xAxisName='Departamentos' numberSuffix='%25' labelDisplay='Rotate' slantLabels='1'>";

$datosXml .= "<categories>";

$datosXml .= "<category label='Recursos Humanos ' />";

$datosXml .= "<category label='Administración ' />";

$datosXml .= "<category label='Sistemas ' />";

$datosXml .= "<category label='Clasificados ' />";

$datosXml .= "</categories>";

$datosXml .= "<dataset seriesName='' color='73a135'>";

$datosXml .= "<set value='95' />";

$datosXml .= "<set value='85' />";

$datosXml .= "<set value='90' />";

$datosXml .= "<set value='98' />";

$datosXml .= "</dataset>";

$datosXml .= "</chart>";

?>

 

// javascript

var chart = new FusionCharts("includes/charts/ScrollLine2D.swf", "ChartId", "498", "280", "0", "0");

chart.addParam("wmode", "transparent");

chart.setDataXML("<? echo $datosXml; ?>");

chart.render("divGrafica");

 

Also already try the utf8_encode, utf8_decode, html_special_chars, htmlentities. My conten-type is this <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

 

I'm using FusionCharts 3.0.4

Share this post


Link to post
Share on other sites

Hi Sunco,

Thank you for your post.

Could you please send us the sample page where you are facing the error, so that we can check it

 

Ok, i attach a working sample with my issue (is a php file)

 

test.php

Edited by sunco

Share this post


Link to post
Share on other sites

Hi Sunco,

we are unable to produce the error in v3.2 .

could you please try usind FusionCharts v3.2 if you are not using it

 

Yep, it works as it should on 3.2. Thanks :)

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