Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix python2 print unicode issue #2183

Merged

Conversation

dizcology
Copy link
Member

label and entity descriptions from the service are in unicode, and printing with string formatting in python2 could result in errors such as

UnicodeEncodeError: 'ascii' codec can't encode character u'\xea' in position 1: ordinal not in range(128)

@dizcology dizcology requested a review from nnegrey May 31, 2019 02:26
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label May 31, 2019
@dizcology dizcology requested a review from beccasaurus May 31, 2019 02:27
@beccasaurus beccasaurus merged commit 501119d into GoogleCloudPlatform:master May 31, 2019
busunkim96 pushed a commit to busunkim96/python-videointelligence that referenced this pull request May 20, 2020
danoscarmike pushed a commit to googleapis/python-videointelligence that referenced this pull request Sep 30, 2020
parthea pushed a commit to googleapis/google-cloud-python that referenced this pull request Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants