Page 1 of 1

xml to associative array and encoding

Posted: Tue Jan 08, 2008 10:49 pm
by seco
Hi
i ahve xml file that contrins non english text and i try to convert it to associative array i try some one but the output is not appeared correctly !!
should i convert the array encoding before dealing with it ?or what?

thanks in advance.

Posted: Wed Jan 09, 2008 12:51 am
by Christopher
What character set is it using? What are you using to parse the XML?

Posted: Wed Jan 09, 2008 2:55 am
by seco
the class that parse xml use xml_create_parser()
and before i save the xml i encode it utf-8 using iconv and it appear correctly

but now when convert this xml to array i want to print it on image not webpage so i must convert the encoding before using the array