Skip to content

Conversation

gguuss
Copy link
Contributor

@gguuss gguuss commented Apr 14, 2017

No description provided.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Apr 14, 2017
@@ -1,4 +1,6 @@
#!/usr/bin/env python
# -*- coding: iso-8859-15 -*-
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You shouldn't need to specify an encoding in this file.

from google.cloud import translate
from six import python_2_unicode_compatible
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh no, not this. If text comes from the command line you should just be able to do text.encode('utf-8'). You' won't even have to reference the specific type (bytes/str).

@theacodes
Copy link
Contributor

@dpebot will you merge when travis passes?

@dpebot
Copy link
Collaborator

dpebot commented Apr 17, 2017

Okay! I'll merge when all statuses are green and all reviewers approve.

@dpebot dpebot added the automerge Merge the pull request once unit tests and other checks pass. label Apr 17, 2017
@dpebot dpebot self-assigned this Apr 17, 2017
@dpebot dpebot merged commit bd718e4 into master Apr 18, 2017
@dpebot dpebot deleted the speech_unicode branch April 18, 2017 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Merge the pull request once unit tests and other checks pass. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants