bllendev / py-googletrans

The following is a fork of ssut/py-googletrans, with an updated ci/cd, unit tests, updated environment packages, and a now, working product
http://py-googletrans.rtfd.io
MIT License
2 stars 1 forks source link

& char causes text being cut off #17

Open holymode opened 1 year ago

holymode commented 1 year ago

Any text that has & in their text will result in text being cut off.

Example: An sich ist die Idee des Spiels gut, hübsch & minimalistisch umgesetzt, typisches Incremental-gameplay und viele Updates ... Translated text: In itself, the idea of ​​the game is good, pretty

mortalsky commented 1 year ago

Trying to translate a multiples lines text gives InvalidURL("Invalid non-printable ASCII character in URL"). I think both of them have something to do with the same thing. I haven't looked at the source code but I am guessing it provides the text through the url which causes these issues.

bllendev commented 1 year ago

@mortalsky @holymode ill take a look when i get some free time, thanks for tips