frankiej Posted January 23, 2009 Share Posted January 23, 2009 I use Simple XML to try to parse an xml file. The problem is that the xml file contains Swedish chars (åäö) and whenever i try to parse the file with Simple XML i get errors becuase of that. What is wrong? How do i solve it? My XML header looks like this: <?xml version="1.0" encoding="iso-8859-1" ?> But still...Simple XML will generate erros....why? Link to comment https://forums.phpfreaks.com/topic/142105-xml-and-phpproblems-with-chars/ Share on other sites More sharing options...
PFMaBiSmAd Posted January 23, 2009 Share Posted January 23, 2009 Post the error messages you are getting. Link to comment https://forums.phpfreaks.com/topic/142105-xml-and-phpproblems-with-chars/#findComment-744220 Share on other sites More sharing options...
frankiej Posted January 23, 2009 Author Share Posted January 23, 2009 "not well-formed (invalid token)Error on line 17" Line 17 in my XML file contains Swedish characters. There is nothing else wrong with the file. Just those pesky swedish chars that seem to mess up when run with PHP. Link to comment https://forums.phpfreaks.com/topic/142105-xml-and-phpproblems-with-chars/#findComment-744589 Share on other sites More sharing options...
RichardRotterdam Posted January 23, 2009 Share Posted January 23, 2009 Can you show the xml file and the code you use to parse the xml file? Link to comment https://forums.phpfreaks.com/topic/142105-xml-and-phpproblems-with-chars/#findComment-744667 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.