nvivek has asked for the wisdom of the Perl Monks concerning the following question:
Dear friends,
I am using XML::Simple->XMLin function for reading data from XML file and converting into perl hash. Whenever XML data contains control characters in it, I am receiving above error. How to solve that error to convert the XML data to hash. I tried setting <?xml version="1.0" encoding="iso-8859-1"?> and <?xml version="1.0" encoding="UTF-8"?>, but still I am unable to parse the XML data to a perl hash. Kindly anyone suggest me a solution.
MY XML DATA
<EVENT> <CALLDETAILS> <STATIONID>01</STATIONID> <CALLSESSIONID>00000000020712130852059</CALLSESSIONID> <EXTENSIONNO>8143</EXTENSIONNO> <ZIVAHCHANNELID>172.16.39.88</ZIVAHCHANNELID> <SUBCHANNELID>0</SUBCHANNELID> <AGENTID>NULL</AGENTID> <CALLERID><A0>jW<B7>h<AE><F5><BF><8A>7a<B7><D8>T<D9>^N</CALLER +ID> <CALLEEID>NULL</CALLEEID> <CALLTYPE>IN</CALLTYPE> <RINGCOUNT>1</RINGCOUNT> <CALLTERMSTATUS>NO_CTI_DATA</CALLTERMSTATUS> </CALLDETAILS> </EVENT>
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: XML::Simple parser error : Input is not proper UTF-8, indicate encoding
by daxim (Curate) on Aug 10, 2012 at 13:32 UTC | |
by nvivek (Vicar) on Aug 17, 2012 at 05:31 UTC | |
Re: XML::Simple parser error : Input is not proper UTF-8, indicate encoding
by BrowserUk (Patriarch) on Aug 10, 2012 at 13:32 UTC | |
by daxim (Curate) on Aug 10, 2012 at 13:37 UTC | |
by BrowserUk (Patriarch) on Aug 10, 2012 at 13:46 UTC | |
by daxim (Curate) on Aug 10, 2012 at 13:49 UTC | |
by BrowserUk (Patriarch) on Aug 10, 2012 at 14:08 UTC | |
|
Back to
Seekers of Perl Wisdom