this code work well

PHP Code:
<?
$x="Boy";
$url ="http://search.yahoo.com/search?p=".$x."&ei=ISO-8859-1&fl=0&x=wrt";
$string = implode("\n", file($url));
echo $string ;
?>
but when i change the word "Boy" to word in another language
it will not working ??