Sign in to follow this  
Pallav

Unicode input

Recommended Posts

I'm trying to display a chart containing UTF-8 encoded characters. It seems that FusionCharts is displaying my

 

characters in ISO encoding anyway. I am using the setDataURL method to point to a servlet feeding xml data in

 

UTF-8 format.

 

 

 

Am I doing something wrong, or doesn't FusionCharts support Unicode?

 

 

 

Magnus

Share this post


Link to post
Share on other sites

Thanks!

 

 

 

Turns out that java doesn't write BOM to the UTF-8 outputstream.

 

For anyone else having the same problem:

 

 

 

write bytes 0xEF, 0xBB, 0xBF to the outputstream if the encoding used is UTF-8.

 

 

 

I think UTF-16 contains BOM...

 

 

 

Magnus

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