ciao a tutti, cerco di leggere da un file XML facendo
include_once("../inc/connection_tmp.php");
mysql_set_charset('utf8',$conn);
$xmlstring = file_get_contents("http://xxxxx/xxx.asp");
$xml = simplexml_load_string($xmlstring);
ma ottengo
Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 1: parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0xB0 0x20 0x52 0x61 in /var/www/xxx.com/xxxx.php on line 7
Warning: simplexml_load_string() [function.simplexml-load-string]: ><updated>0</updated></event><event><id>1101</id><date>18/09/2011</date><title>2 in /var/www/xxxx.com/xxxxxxxphp on line 7
ho provato anche senza
mysql_set_charset('utf8',$conn);
ma non cambia nulla
Warning: simplexml_load_string() [function.simplexml-load-string]: ^ in /var/www/xxxxxxx.com/xxxxx_org.php on line 7
Warning: Invalid argument supplied for foreach() in /var/www/xxxx.com/xxxxx.php on line 10