seco Posted January 9, 2008 Share Posted January 9, 2008 Hi i have xml file that contains 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. Quote Link to comment https://forums.phpfreaks.com/topic/85132-xml-to-associative-array-and-encoding/ Share on other sites More sharing options...
naveenbj Posted January 9, 2008 Share Posted January 9, 2008 Hello Can you show the code . Nj Quote Link to comment https://forums.phpfreaks.com/topic/85132-xml-to-associative-array-and-encoding/#findComment-434308 Share on other sites More sharing options...
sKunKbad Posted January 9, 2008 Share Posted January 9, 2008 you may have to encase the contents of the xml in cdata tags Quote Link to comment https://forums.phpfreaks.com/topic/85132-xml-to-associative-array-and-encoding/#findComment-434333 Share on other sites More sharing options...
seco Posted January 9, 2008 Author Share Posted January 9, 2008 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 associative array i want to print it on image not webpage so i must convert the encoding before using the array Quote Link to comment https://forums.phpfreaks.com/topic/85132-xml-to-associative-array-and-encoding/#findComment-434386 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.