470,855 Members | 1,230 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,855 developers. It's quick & easy.

problem with utf8

hi people,

i have a script :
<?
$num=0;
$backendURL = "http://rezo.net/backend/afp";

$limit = 1; // nombre maxi de news ŗ afficher.

$file = fopen( $backendURL, "r");
if( $file ) {
$raw = fread( $file, 32000 );
fclose( $file );
if( eregi("<item>(.*)</item>", $raw, $rawitems ) ) {
$items = explode("<item>", $rawitems[0]);
$nb = count($items );

eregi("<title>(.*)</title>",$items[$num+1], $title);
eregi("<link>(.*)</link>",$items[$num+1], $link);

$tp2=$title[1];
$tp3=$link[1];
}
} else {
$tp2="Pas de news";
}

$tmp="info0_txt=".$tp2."&info0_lien=".$tp3;
$tmp=utf8_encode($tmp);
echo $tmp;

?>

But the text isn't encoded by $tmp=utf8_encode($tmp);
IF I retrieve data from a base (mysql) that 's work !! WHY ?!
Jul 17 '05 #1
0 1770

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by sinasalek | last post: by
10 posts views Thread by Achim Domma | last post: by
reply views Thread by TJO | last post: by
1 post views Thread by Frank Esser | last post: by
2 posts views Thread by Jim Lawton | last post: by
reply views Thread by hristozov | last post: by
1 post views Thread by erikcw | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.