{"action":"created","issue":{"url":"https://api.github.com/repos/google/protobuf/issues/2277","repository_url":"https://api.github.com/repos/google/protobuf","labels_url":"https://api.github.com/repos/google/protobuf/issues/2277/labels{/name}","comments_url":"https://api.github.com/repos/google/protobuf/issues/2277/comments","events_url":"https://api.github.com/repos/google/protobuf/issues/2277/events","html_url":"https://github.com/google/protobuf/issues/2277","id":184577354,"number":2277,"title":"Python - string representation of objects should be `unicode`s, not `str`s","user":{"login":"jerjou","id":913439,"avatar_url":"https://avatars2.githubusercontent.com/u/913439?v=3","gravatar_id":"","url":"https://api.github.com/users/jerjou","html_url":"https://github.com/jerjou","followers_url":"https://api.github.com/users/jerjou/followers","following_url":"https://api.github.com/users/jerjou/following{/other_user}","gists_url":"https://api.github.com/users/jerjou/gists{/gist_id}","starred_url":"https://api.github.com/users/jerjou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jerjou/subscriptions","organizations_url":"https://api.github.com/users/jerjou/orgs","repos_url":"https://api.github.com/users/jerjou/repos","events_url":"https://api.github.com/users/jerjou/events{/privacy}","received_events_url":"https://api.github.com/users/jerjou/received_events","type":"User","site_admin":false},"labels":[{"id":250677130,"url":"https://api.github.com/repos/google/protobuf/labels/python","name":"python","color":"d4c5f9","default":false}],"state":"closed","locked":false,"assignee":{"login":"anandolee","id":11618033,"avatar_url":"https://avatars3.githubusercontent.com/u/11618033?v=3","gravatar_id":"","url":"https://api.github.com/users/anandolee","html_url":"https://github.com/anandolee","followers_url":"https://api.github.com/users/anandolee/followers","following_url":"https://api.github.com/users/anandolee/following{/other_user}","gists_url":"https://api.github.com/users/anandolee/gists{/gist_id}","starred_url":"https://api.github.com/users/anandolee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anandolee/subscriptions","organizations_url":"https://api.github.com/users/anandolee/orgs","repos_url":"https://api.github.com/users/anandolee/repos","events_url":"https://api.github.com/users/anandolee/events{/privacy}","received_events_url":"https://api.github.com/users/anandolee/received_events","type":"User","site_admin":false},"assignees":[{"login":"anandolee","id":11618033,"avatar_url":"https://avatars3.githubusercontent.com/u/11618033?v=3","gravatar_id":"","url":"https://api.github.com/users/anandolee","html_url":"https://github.com/anandolee","followers_url":"https://api.github.com/users/anandolee/followers","following_url":"https://api.github.com/users/anandolee/following{/other_user}","gists_url":"https://api.github.com/users/anandolee/gists{/gist_id}","starred_url":"https://api.github.com/users/anandolee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anandolee/subscriptions","organizations_url":"https://api.github.com/users/anandolee/orgs","repos_url":"https://api.github.com/users/anandolee/repos","events_url":"https://api.github.com/users/anandolee/events{/privacy}","received_events_url":"https://api.github.com/users/anandolee/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2016-10-21T21:48:35Z","updated_at":"2017-03-08T19:45:02Z","closed_at":"2017-03-08T19:45:02Z","body":"I have a script that makes [grpc](http://grpc.io) calls, that return text that's potentially in a different language. In the code, I print out the list of objects who have the attribute transcript, that is the unicode with the text. However, if the text is in fact a double-byte character, it's printed out as escape sequences. Printing out the transcript attribute directly correctly prints out the desired character.\n\nI suspect this is because the **str** of the protoc-generated response objects are str objects instead of unicode objects. Given that in python3, all string objects default to unicode objects, it might be prudent for the string representations of grpc-generated objects also be unicode objects.\n"},"comment":{"url":"https://api.github.com/repos/google/protobuf/issues/comments/285147356","html_url":"https://github.com/google/protobuf/issues/2277#issuecomment-285147356","issue_url":"https://api.github.com/repos/google/protobuf/issues/2277","id":285147356,"user":{"login":"anandolee","id":11618033,"avatar_url":"https://avatars3.githubusercontent.com/u/11618033?v=3","gravatar_id":"","url":"https://api.github.com/users/anandolee","html_url":"https://github.com/anandolee","followers_url":"https://api.github.com/users/anandolee/followers","following_url":"https://api.github.com/users/anandolee/following{/other_user}","gists_url":"https://api.github.com/users/anandolee/gists{/gist_id}","starred_url":"https://api.github.com/users/anandolee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anandolee/subscriptions","organizations_url":"https://api.github.com/users/anandolee/orgs","repos_url":"https://api.github.com/users/anandolee/repos","events_url":"https://api.github.com/users/anandolee/events{/privacy}","received_events_url":"https://api.github.com/users/anandolee/received_events","type":"User","site_admin":false},"created_at":"2017-03-08T19:45:02Z","updated_at":"2017-03-08T19:45:02Z","body":"It's not nice to change the default behavior which breaks many existing projects. I think Feng's suggestion is good enough for your case.\r\n\r\nClosing it for clean up. Feel free to reopen if it is still an issue for you"}}
{"actor":{"display_login":"anandolee"}}