multiligual characters and PHP generated XML
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



multiligual characters and PHP generated XML Expand / Collapse
Author
Message
Posted 4/19/2008 5:38:28 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 4/19/2008 4:34:25 PM
Posts: 1, Visits: 8
First of all HI,
And thank you to all developers who works hard on FusionChart product

my issue:
I'm using dataURL method to generate XML.

--XML generating file---

header('Content-type: text/xml; charset: utf-8');
echo $strXML;
---------------------------

All my non-English characters are wrong.

How can I fix this issue?
And how can I write BOM mark in PHP (add to $strXML variable).

I'm using PHP 5


Thank you.


Post #5782
Posted 4/30/2008 5:45:25 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderators
Last Login: Today @ 6:02:32 AM
Posts: 764, Visits: 1,215
Hi,

You can add non-english characters to your XML using PHP and let FusionCharts show them. For this you woudl need to add the BOM to the file.

If you are using dataURL method use these lines:

header('Content-type: text/xml');
echo pack("CCC",0xef,0xbb,0xbf); //adding BOM characters
echo strXML;

If you are using dataXML method you would need to save the PHP file with UTF-8 encoding with BOM. You can do this using Notepad or Drreamweaver etc.

Regards,

Sudipto Choudhury
FusionCharts Team

Post #6029
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -7:00, Time now is 5:29pm


Execution: 0.047.