Pagina 1 din 1

simplexml_load_string error Input not proper UTF-8 encoding

Scris: Dum Iun 08, 2014
de alexinio3d
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 ...

simplexml_load_string error Input not proper UTF-8 encoding

Scris: Dum Iun 08, 2014
de MarPlo
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) );