|
|
|
Forum 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)
|
|
|
|
|
FusionCharts 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
|
|
|
|
|
Forum 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.
|
|
|
|
|
FusionCharts 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
|
|
|
|
|
Forum 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
|
|
|
|
|
FusionCharts 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
|
|
|
|
|
Forum 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
|
|
|
|