projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08ea3b4
)
GoogleTranslate.php
author
Chris
<chris@roojs.com>
Wed, 2 Apr 2014 13:22:02 +0000
(21:22 +0800)
committer
Chris
<chris@roojs.com>
Wed, 2 Apr 2014 13:22:02 +0000
(21:22 +0800)
GoogleTranslate.php
patch
|
blob
|
history
diff --git
a/GoogleTranslate.php
b/GoogleTranslate.php
index
affe702
..
75c857b
100644
(file)
--- a/
GoogleTranslate.php
+++ b/
GoogleTranslate.php
@@
-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';