GoogleTranslate.php
authorChris <chris@roojs.com>
Wed, 2 Apr 2014 13:22:02 +0000 (21:22 +0800)
committerChris <chris@roojs.com>
Wed, 2 Apr 2014 13:22:02 +0000 (21:22 +0800)
GoogleTranslate.php

index affe702..75c857b 100644 (file)
@@ -38,7 +38,9 @@ class Pman_Core_GoogleTranslate extends Pman
             'key' => $pc['googlekey'],
             'q' => rawurlencode($_REQUEST['text']),
             'source' => $_REQUEST['src'],
-            'target' => $_REQUEST['dest']
+            'target' => $_REQUEST['dest'],
+            'ie' => 'UTF-8',
+            'oe' => 'UTF-8',
         );
         
         $url = 'https://www.googleapis.com/language/translate/v2';