xml to associative array and encoding

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
seco
Forum Newbie
Posts: 23
Joined: Tue Jan 08, 2008 10:40 pm

xml to associative array and encoding

Post 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.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

What character set is it using? What are you using to parse the XML?
(#10850)
seco
Forum Newbie
Posts: 23
Joined: Tue Jan 08, 2008 10:40 pm

Post 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
Post Reply