Problem with utf8 encoding

Hi Team,

I am getting an error while opening xml file. Basically, XML file has data which displayed in xforms.

Error is
Notice: iconv(): Detected an illegal character in input string in myfile.php

Fatal error: Uncaught exception ‘Exception’ with message ‘String could not be parsed as XML’ in myfile.php

The xml file is having characters like

Please help me with the issue.

Any help please.

If the XML is your own, try adding CDATA

is your php file stored as utf-8? open in notepad++, on the bottom right there should be the encoding (maybe ansi). in the menu, there’s a convert option.

yes it is utf-8.

When I click on Open (xml file) from my application, it gives me error as having the issue with the characters as above. However, when I open file in notepad++ and just save as with same it gets saved and then gets opened from my application.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.