subzeta / glosbe

Glosbe API wrapper
5 stars 0 forks source link

output is this ????????? #1

Open mohamad68 opened 7 years ago

mohamad68 commented 7 years ago

hi when i use this wrapper for farsi (persian) language output is like this :

array (size=11)
  0 => string '?????' (length=5)
  1 => string '??????' (length=6)
  2 => string '(????) ???? ? ??????' (length=20)
  3 => string '??????? ??? ??? ? ???? ????? ???? ?? ??????' (length=43)
  4 => string '????' (length=4)
  5 => string '???????' (length=7)
  6 => string '????' (length=4)
  7 => string '???????' (length=7)
  8 => string '??? ?????? ??? ? ?????? (?? ??)' (length=31)
  9 => string '?? ???? ???' (length=11)
  10 => string '???? ?????????' (length=14)

my code :

$response = (new Translator())->translate('music', 'eng', 'fa')->send();
var_dump($response->translations());

how can I fix that ?

subzeta commented 7 years ago

Hey there! Let me check encoding, I don't know if it's a library bug or it's mine! 👍

subzeta commented 7 years ago

As long as I see the response from Glosbe isn't correct. I've sent an e-mail to them to ask why.

mohamad68 commented 7 years ago

i appreciate your attention

mohamad68 commented 7 years ago

do you find any way to solve this problem?

subzeta commented 7 years ago

I got no answer from Glosbe and the issue is from them :/