Accented Character
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Accented Character Expand / Collapse
Author
Message
Posted 4/1/2007 5:55:26 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 4/5/2007 3:28:42 AM
Posts: 1, Visits: 5
I try to use accented characters as value for the columns of a column3d chart but the char dont show it I also try to use the URL encode method but nothing, please can you help me . I include the tranform code.

Function arregla(cadena)
   cadena = Replace(cadena,"'","%26apos;")
   cadena = Replace(cadena,"á","%E1")       
   arregla= cadena
End Function 

strXML = "<chart caption='Municipios con mayor numero de obras del colegio de " &rs("colegio") &"' xAxisName='Municipios' yAxisName='Nº Intervenciones' formatNumberScale='0' showBorder='1' labelDisplay ='ROTATE' slantLabels ='1'>"

strXML = strXML & "<set label='" & arregla(trim(rs("POB_OBRA"))) &"' value='" & rs("CuentaDePOB") &"' />"
Call renderChartHTML("graficas/Column3D.swf", "", strXML, "myNext", 600, 300, true)

Post #728
Posted 4/5/2007 2:48:54 AM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts Team

Group: Administrators
Last Login: 7/29/2008 12:15:49 PM
Posts: 2,001, Visits: 474
Hi,

You need to use:

- dataURL method
- make sure that the XML is UTF-8 with proper BOM.

Thanks,
Pallav Nadhani
FusionCharts Team

Post #756
Posted 6/22/2007 5:45:16 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 3/5/2008 10:19:06 AM
Posts: 7, Visits: 10
Hi,
i'm a newbie in use of fusion charts.

what do you mean with proper BOM?

have i to add the following lines at the begin of my php script?

echo chr(hexdec("ef"));
echo chr(hexdec("bb"));
echo chr(hexdec("bf"));

thanks in advance.

Regards.
Post #1398
Posted 6/22/2007 6:13:33 AM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts Team

Group: Administrators
Last Login: 7/29/2008 12:15:49 PM
Posts: 2,001, Visits: 474
If you're using PHP, it automatically outputs that. Just make sure you're using dataURL method - and in the page which you output XML, you specify the output stream as UTF8 XML.

Thanks,
Pallav Nadhani
FusionCharts Team
Post #1399
Posted 6/22/2007 6:48:52 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 3/5/2008 10:19:06 AM
Posts: 7, Visits: 10
Thanks for your reply Pallav, but i don't understand this...

what do you mean when you tell "you specify the output stream as UTF8 XML" ? How can i do that with php?

Can you give me a little pratical php example?

Regards
Bartolomeo D'Alia
Post #1413
Posted 6/25/2007 1:04:17 PM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts Team

Group: Administrators
Last Login: 7/29/2008 12:15:49 PM
Posts: 2,001, Visits: 474
Try something like:

//Output it
header('Content-type: text/xml');
echo $strXML;
?>

Also, what encoding are you using?

Thanks,
Pallav Nadhani
FusionCharts Team

Post #1425
Posted 6/26/2007 3:31:10 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 3/5/2008 10:19:06 AM
Posts: 7, Visits: 10
Thanks Pallav, now with the header function all works fine!

After adding the header, i simply can output special characters without any type of encoding, for example:
echo "Amount, 14.358,00 €";

Moreover, there's to pay attention on the fonts gereally used for web contents. For example, some versions of the "Lucida Sans" font cannot show correctly the euro sign in explorer 6 (is replaced with a little square).

Regards.
Bartolomeo D'Alia
Post #1438
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -7:00, Time now is 11:06am


Execution: 0.156.