jaideep Report post Posted January 22, 2009 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
Rahul Kumar Report post Posted January 23, 2009 Hi, We would require some more information: 1. Language which you are using? 2. Method (dataURL or dataXML)? Share this post Link to post Share on other sites
jaideep Report post Posted January 23, 2009 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
Rahul Kumar Report post Posted January 24, 2009 (edited) 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 January 24, 2009 by Guest Share this post Link to post Share on other sites
jaideep Report post Posted January 30, 2009 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
Rahul Kumar Report post Posted February 2, 2009 Hi, The above method is working fine with all the UTF-8 characters. However please send us your code, so that we can debug it for the issue. Share this post Link to post Share on other sites
jaideep Report post Posted February 3, 2009 thanks for the reply. It works for me now. thanks, Share this post Link to post Share on other sites