why cant I see the word ? (encoding problem?)
Posted: Thu Nov 30, 2006 6:16 am
feyd | Please use
why is it ?? what do i have to do to print it and to see the translation
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
when im writing the url:
[url]http://www.google.com/translate_t?ie=UTF8&hl=en&langpair=en|ar&text=book[/url]
in the address bar, I see that the word book and the arabic translation are there.
but when i use the following php code to get the data and print it to screen,
the arabic translation is , I think encoede badly,Code: Select all
$url = "http://www.google.com/translate_t?ie=UTF8&hl=en&langpair=en|ar&text=book";
$fp = fopen($url,"r");
echo fread($fp, (1024*16));
fclose($fp);why is it ?? what do i have to do to print it and to see the translation
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]