Sign in to follow this  
FerTheLast

Character encoding problem in exporting pure javascript charts in ASP.NET

Recommended Posts

Hi 


 


I am exporting pure javascript charts using ASP.NET handler (FCExporter.aspx). The charts are exported but there is a problem with character encoding in results:


 


 


For example, I have the following pie 3d chart:


 


post-62880-0-27916600-1406834875_thumb.jpg


 


 


but when i export the chart it shows as follow:


 


post-62880-0-93595500-1406834875_thumb.jpg


 


 


It happens in all formats in which I export, as you can see in exported version a "?" symbol is shown instead of special characters We use in latin america like "á" or "ñ"


 


 


I hope you can help mw with this issue


 


Thanks,


 


Fernando


Edited by fespin5

Share this post


Link to post
Share on other sites

 

Hi 

 

I am exporting pure javascript charts using ASP.NET handler (FCExporter.aspx). The charts are exported but there is a problem with character encoding in results:

 

 

For example, I have the following pie 3d chart:

 

attachicon.gifpiechart.JPG

 

 

but when i export the chart it shows as follow:

 

attachicon.gifpiechartexported.JPG

 

 

It happens in all formats in which I export, as you can see in exported version a "?" symbol is shown instead of special characters We use in latin america like "á" or "ñ"

 

 

I hope you can help mw with this issue

 

Thanks,

 

Fernando

 

Hi Fernando,

 

Could you please provide us with the relevant XML/JSON data so that we might test it?

 

Also, could you please remove the "exportHandler" attribute and export the chart via our public server and see if this helps?

 

Awaiting your response.

Share this post


Link to post
Share on other sites

Hi Fernando,

 

Could you please provide us with the relevant XML/JSON data so that we might test it?

 

Also, could you please remove the "exportHandler" attribute and export the chart via our public server and see if this helps?

 

Awaiting your response.

 

Hi,

 

thanks for your reply,

 

The following is the JSON code trough which Im generating the chart:

{

"chart": 


{

"caption": "GRAFICO EVENTOS",
"exportEnabled": "1",
"exportAtClient": "0",
"exportAction": "download",
"exportHandler": "/Scripts/FusionCharts/ExportHandlers/ASP_Net/FCExporter.aspx",
"exportFilename": "GraficoEventos_04-08-2014",
"exportShowMenuItem": "0",
"bgAlpha": "0",
"borderAlpha": "20",
"use3DLighting": "0",
"showShadow": "0",
"enableSmartLabels": "0",
"startingAngle": "0",
"showPercentValues": "1",
"showPercentInTooltip": "0",
"labelDisplay": "wrap",
"decimals": "1"

},

"data": 

[

{"label": "Gestión de Desempeño","value": "24,32"},
{"label": "Gestión de Recursos Financieros","value": "10,81"},
{"label": "Gestión de Recursos Físicos","value": "8,11"},
{"label": "Gestión de Riesgos","value": "18,92"},
{"label": "Gestión de Recursos y Talento Humano","value": "5,41"},
{"label": "Gestión de Tecnología (IT)","value": "32,43"}

]

} 

Could you please show me where can I read some documentation about exporting via your public server? I haven't tried this method,

 

Thanks a lot for yout help, 

Share this post


Link to post
Share on other sites

Hi,

 

thanks for your reply,

 

The following is the JSON code trough which Im generating the chart:

{

"chart": 


{

"caption": "GRAFICO EVENTOS",
"exportEnabled": "1",
"exportAtClient": "0",
"exportAction": "download",
"exportHandler": "/Scripts/FusionCharts/ExportHandlers/ASP_Net/FCExporter.aspx",
"exportFilename": "GraficoEventos_04-08-2014",
"exportShowMenuItem": "0",
"bgAlpha": "0",
"borderAlpha": "20",
"use3DLighting": "0",
"showShadow": "0",
"enableSmartLabels": "0",
"startingAngle": "0",
"showPercentValues": "1",
"showPercentInTooltip": "0",
"labelDisplay": "wrap",
"decimals": "1"

},

"data": 

[

{"label": "Gestión de Desempeño","value": "24,32"},
{"label": "Gestión de Recursos Financieros","value": "10,81"},
{"label": "Gestión de Recursos Físicos","value": "8,11"},
{"label": "Gestión de Riesgos","value": "18,92"},
{"label": "Gestión de Recursos y Talento Humano","value": "5,41"},
{"label": "Gestión de Tecnología (IT)","value": "32,43"}

]

} 

Could you please show me where can I read some documentation about exporting via your public server? I haven't tried this method,

 

Thanks a lot for yout help, 

Hi,

 

Please refer to the following link for further details on export.

Ref.- http://docs.fusioncharts.com/tutorial-getting-started-adding-interactivity-exporting-to-images-or-pdf.html

 

Also, please remove the "exportHandler" attribute to export the charts via FusionCharts public server.

 

Hope this helps. :)

Share this post


Link to post
Share on other sites

Hi,

 

Please refer to the following link for further details on export.

Ref.- http://docs.fusioncharts.com/tutorial-getting-started-adding-interactivity-exporting-to-images-or-pdf.html

 

Also, please remove the "exportHandler" attribute to export the charts via FusionCharts public server.

 

Hope this helps. :)

 

Thanks a lot, Now  it Works fine!!

 

 

How much time will be to have the self-hosted export module which works as well as this solution?

 

For us it would be very useful because there is a possibility that we can face customer environments with no internet connection

 

 

Regards 

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