
Adnan - 2012-09-16 08:50:54 -
In reply to message 1 from andrew lee
Add the line below before any output is sent to browser (i.e. at the top of your code):
header('Content-Type: text/html; charset=utf-8');
You are lucky... But I don't even get any output from the translate function. It returns nothing!
My code:
<?php
//for enabling utf-8 correctly
header('Content-Type: text/html; charset=utf-8');
require_once('class.google_translate.php');
$trans = new Google_Translate;
$trans->translate('Jeg er godt.');
?>