Witam. Mam taki kod opdowiedzialny za wyświetlanie statusów z FB. Co dodać aby text był wyświetlany w UTF-8?
$message = explode("<message>", $content); // search for the <message> tag $message_cnt = count($message); $msg_index = 0;
$time = explode("<time>", $content); // search for the <time> tag
for($i=1; $i<$message_cnt; $i++)
{
$tmp = explode("</message>", $message[$i]); $msg[$msg_index] = $tmp[0]; // status message
$tmp2 = explode("</time>", $time[$i]); $t[$msg_index++] = $tmp2[0]; // time of posting
}
for($i=0; $i<$msg_index; $i++)
{
echo("<div class=\"post\"><div class=\"date\">".date("d.m", $t[$i])." </div>".preg_replace('!\015\012|\015|\012!','',$msg[$i])."</div>\n \n");
}
Z góry thx za odp.