Skip to content

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

Open
@jaga8285

Description

@jaga8285

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions