py-googletranslation icon indicating copy to clipboard operation
py-googletranslation copied to clipboard

JSONDecodeError: Expecting ',' delimiter during bulk translation

Open jaga8285 opened this issue 3 years ago • 1 comments

Describe the bug During the translation of the japanese equivalent of quotes (「」), an exception is thrown over the decoding of the http response.

To Reproduce Steps to reproduce the behavior: Run these in a python console

from pygoogletranslation import Translator 
translator = Translator()
translator.translate('「」',src="ja",dest="en")

Expected behavior A translated object containing quotation marks is returned

Desktop (please complete the following information):

  • OS: Windows 10
  • Version 2.0.4

Additional context Most likely the quotation marks aren't being properly escaped during JSON decoding

jaga8285 avatar Jan 29 '21 11:01 jaga8285

I am having the same issue are there any solutions yet?

yudhiesh avatar Feb 01 '21 17:02 yudhiesh