PHP Classes

Wrong response for russian translations

Recommend this page to a friend!

      GoogleTrnsltr PHP Google Translate API Library  >  All threads  >  Wrong response for russian translations  >  (Un) Subscribe thread alerts  
Subject:Wrong response for russian translations
Summary:UTF8 not working
Messages:1
Author:umni
Date:2021-12-28 16:02:42
 

  1. Wrong response for russian translations   Reply   Report abuse  
Picture of umni umni - 2021-12-28 16:02:42
Great script.

One thing I have noticed is that if you try to to translate some let say english text to russian, the response comes broken, like this :

{ "data": { "translations": [ { "translatedText": "??????????, ????????? ????. ???? ???????? ????????? ???????, ??? ????? ???????? ?? ????? ??? ?????????." } ] } }

Looking at the class, it already has utf8_decode($JsonGooTrnsltr);, so, no idea why it interprets it wrongly.