May 2018
Beginner
490 pages
13h 16m
English
The standard Google header provided by Google was enough for the program I wrote, as shown in the following code.
from googleapiclient.discovery import build
Considering the many languages Google manages, special characters are a major problem to handle. Many forums and example programs on the Web struggle with the UTF-8 header when using Google Translate. Many solutions are suggested, such as the following source code header.
# -*- coding: utf-8 -*-
Then, when Google translate returns the result, more problems occur and many develop their own functions. They work fine but I was looking for a straightforward one-line solution. The goal here was not to have many lines of code but focus on the limit of Google Translate to discover ...
Read now
Unlock full access