Sign in to follow this  
Rahul Kumar

Foreign and international characters don't show up right in Fusion Maps

Recommended Posts

Hi,

 

I am trying to display foreign and international characters using Fusion maps (examples could be using say korean or other languages) and they dont show up right.

 

 

 

For eg. This piece of text - "Gr

Share this post


Link to post
Share on other sites

Hi,

 

Thanks for the reply.

 

We are using the setDataURL method.

 

Also we use vb.net to set up the maps from our application.

 

 

 

thanks,

 

Jaideep.

Share this post


Link to post
Share on other sites

Hi,

 
We have attached a sample code, you can take it as a reference.
 
Please note, this sample code is for FusionCharts but its UTF-8 implementation technique will work also with FusionMaps (Last 4-5 lines of the PieData.aspx.vb code file).
 
The Code you have to use is this:

//Set Proper output content-type

Response.ContentType = "text/xml; characterset=utf-8";

//Just write out the XML data

//NOTE THAT THIS PAGE DOESN'T CONTAIN ANY HTML TAG, WHATSOEVER

//Just Write out the UTF-8 tag.

Response.BinaryWrite(new byte[] { 0xEF, 0xBB, 0xBF });

Response.Write(xmlData.ToString());

 
How to use:

You would need to use this code exactly in the same way as given in the Attachment (PieData.aspx.vb).
-OR-
You can also just paste the above code at the end of your code, but need to replace xmlData variable with your variable name.
 
OR HOWEVER, if it is does not work for you, then please take a look at this: http://www.fusioncharts.com/forum/FindPost8054.aspx
 

Sample Code.zip

Edited by Guest

Share this post


Link to post
Share on other sites

Hi,

 

Thanks for the reply.

 

 

 

This encoding works fine for some characters. But if i am trying to use languages such as chinese/korean - the ouput comes out in the form of small boxes and is not right .How do i resolve that ?

 

 

 

thanks,

 

Jaideep.

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