• Content count

  • Joined

  • Last visited

About Bernie6421

  • Rank
    Forum Newbie
  1. Chinese characters not displaying

    Thank you for your answer, I used this code for adding the BOM stamp header ( 'Content-type: text/xml; charset=utf-8' ); echo pack ( "C3" , 0xef, 0xbb, 0xbf ); Here is a narrowed version of the chart: <chart caption='人均能源消耗 (千克油当量)'> <categories> <category label='1960'/> <category label='1961'/> </categories> <dataset seriesName='德国'> <set value='1952.53390446186' toolText='1960: 1.953'/> <set value='1994.3205580687' toolText='1961: 1.994'/> </dataset> </chart> Hope that can help you to track the problem, Thanks Bernhard
  2. Chinese characters not displaying

    Hi Vishalika, thank you very much for your response, I tried to add the BOM at the beginning of the file but it's still not working. In my case I don't use the UTF8 characters directly as caption but the XML entities, so it should work also without UTF8 encoding (?). Do you have another idea? Thanks Bernhard
  3. Hi, I use Fusion charts 3.1, I have the problem, that the chinese characters are not displayed correctly: See the first chart here: What's strange is that the second chart on the Page (the Pie chart) displays the characters correctly. The XML of the chart seems OK: All charcters are encoded as XML entities: <chart caption='人均能源消耗 (千克油当量)' ... You can take a look at the XML here:〈=zh In the PHP the Chart is created like this: $xml_string = $doc->saveXML(); header('Content-Type: text/html; charset=utf-8'); $xml_string=str_replace('"',"'",$xml_string); echo trim(preg_replace('/<\?xml.*\?>/', '', $xml_string, 1)); Any ideas? Thank you Bernhard
  4. Change Country Color With Javascript

    Hi Angshu, thanks a lot for the answer, I tried this out but I have problems with the getXml and setXML methods. Whenever I use the getMapFromId() I get an object of type object HTMLEmbedElement. But on this object I can't use the getXML or setXMl methods. So this code doesnt work, I get the error message: getMapFromId("Map1Id").setDataXML is not a function mapObj = getMapFromId("Map1Id"); oxml = mapObj.getXML(); Do you have an idea about this? Bernhard
  5. Hi, I have a list of countries in HTML and a corresponding fusion map. I want to highlight the country in the map when selecting (or hover) the country in the HTML list. So I have to access the map from the HTML page via javascript. Is that possible? In the docu I only found the other way round: From the map to the HTML/javascript via the FC_Event Javascript method. Bernhard