Saravananslb / py-googletranslation

pygoogletranslation: Free and Unlimited Google translate API for Python. Translates totally free of charge.
https://saravananslb.github.io/py-googletranslation/
MIT License
156 stars 40 forks source link

JSONDecodeError: Expecting ',' delimiter during bulk translation #10

Open jaga8285 opened 3 years ago

jaga8285 commented 3 years ago

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):

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

yudhiesh commented 3 years ago

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