From: Chris Date: Wed, 2 Apr 2014 13:11:33 +0000 (+0800) Subject: GoogleTranslate.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=e0d534aaa6feb1edfc1c54fd8aba6ffa81f13044 GoogleTranslate.php --- diff --git a/GoogleTranslate.php b/GoogleTranslate.php index 9df1f3d9..a2d7a918 100644 --- a/GoogleTranslate.php +++ b/GoogleTranslate.php @@ -63,7 +63,7 @@ class Pman_Core_GoogleTranslate extends Pman $this->jerr('does not have translated text.', print_r($responseDecoded, true)); } var_dump($responseDecoded->data->translations[0]->translatedText); - $responseDecoded->data->translations[0]->translatedText = rawurldecode($responseDecoded->data->translations[0]->translatedText); + $responseDecoded->data->translations[0]->translatedText = rawurldecode(str_replace(' ', '', $responseDecoded->data->translations[0]->translatedText)); $this->jok($responseDecoded->data->translations[0]); }