Commit 6f47ec0d authored by Michal Čihař's avatar Michal Čihař

Correctly handle unicode strings with tmserver

parent e89c50f4
......@@ -59,7 +59,7 @@ class TMServerTranslation(MachineTranslation):
url = '%s/tmserver/en/%s/unit/%s' % (
MT_TMSERVER.rstrip('/'),
urllib.quote(language),
urllib.quote(text),
urllib.quote(text.encode('utf-8')),
)
response = self.json_req(url)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment