simplexml_load_string error Input not proper UTF-8 encoding

Discutii despre script-uri si coduri PHP-MySQL, precum si lucru cu XML in PHP.
alexinio3d
Mesaje:96

simplexml_load_string error Input not proper UTF-8 encoding

Salut imi puteti spune de ce tot primesc urmatoarele erori ?

Cod: Selectaţi tot

[08-Jun-2014 12:00:08 Europe/Helsinki] PHP Warning:  simplexml_load_string(): Entity: line 1: parser error : Input is not proper UTF-8, indicate encoding !
Bytes: 0xB4 0x73 0x20 0x4E in /home/treisute/public_html/radio/include.php on line 58
[08-Jun-2014 12:00:08 Europe/Helsinki] PHP Warning:  simplexml_load_string(): treisute.ro</SERVERURL><SERVERTITLE>Radio25 Romania</SERVERTITLE><SONGTITLE>Word in /home/treisute/public_html/radio/include.php on line 58
[08-Jun-2014 12:00:08 Europe/Helsinki] PHP Warning:  simplexml_load_string():                                                                                ^ in /home/treisute/public_html/radio/include.php on line 58
[08-Jun-2014 12:00:08 Europe/Helsinki] PHP Warning:  simplexml_load_string(): Entity: line 1: parser error : Input is not proper UTF-8, indicate encoding !
Bytes: 0xB4 0x73 0x20 0x4E in /home/treisute/public_html/radio/include.php on line 58
[08-Jun-2014 12:00:08 Europe/Helsinki] PHP Warning:  simplexml_load_string(): treisute.ro</SERVERURL><SERVERTITLE>Radio25 Romania</SERVERTITLE><SONGTITLE>Word in /home/treisute/public_html/radio/include.php on line 58
Am cautat pe net si numa nu am gasit nici o explicatie ...
Siteuri create / configurate de mine :
SilvoProject.Ro ( Magazin Online ) : SilvoProject.Ro
TreiSute.Ro ( Comunitate de gaming ) : TreiSute.Ro

MarPlo Mesaje:4343
Salut
Din mesajul de eroare se intelege ca sirul cu documentul xml contine caractere nevalide utf-8 (0xB4 0x73 0x20 0x4E).
Incearca sa convertesti sirul in format valid utf-8, cu functa utf8_encode().

Cod: Selectaţi tot

$xml = simplexml_load_string( utf8_encode($sir_xml) );
 

Subiecte similare