{"issue":{"title":"set_status should accept unicode or document ascii requirement","user":{"login":"jblomo","id":45173,"url":"https://api.github.com/users/jblomo","gravatar_id":"923bbb4cdeab169358186ff211c38112","avatar_url":"https://secure.gravatar.com/avatar/923bbb4cdeab169358186ff211c38112?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"created_at":"2011-12-22T17:44:56Z","milestone":{"title":"v0.3.x","created_at":"2011-11-03T00:14:19Z","creator":{"login":"davidmarin","id":50076,"url":"https://api.github.com/users/davidmarin","gravatar_id":"2b5b729537aaef280639ce21fc2194c1","avatar_url":"https://secure.gravatar.com/avatar/2b5b729537aaef280639ce21fc2194c1?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"open_issues":20,"state":"open","due_on":null,"closed_issues":0,"number":7,"description":"Nice-to-have things that we can do in a point release","url":"https://api.github.com/repos/Yelp/mrjob/milestones/7"},"state":"open","updated_at":"2011-12-27T18:37:30Z","labels":[{"name":"Bug","url":"https://api.github.com/repos/Yelp/mrjob/labels/Bug","color":"d95757"}],"id":2639707,"closed_at":null,"html_url":"https://github.com/Yelp/mrjob/issues/320","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"Trying to set the status with a string containing a non-ascii character throws an exception: \r\n\r\n    UnicodeEncodeError: 'ascii' codec can't encode character u'\\xe0' in position 26: ordinal not in range(128)\r\n\r\nWe should either accept and print UTF-8 (if hadoop supports it) or document that only ascii can be passed to the function.","number":320,"url":"https://api.github.com/repos/Yelp/mrjob/issues/320","comments":1,"assignee":null},"comment":{"user":{"login":"davidmarin","id":50076,"url":"https://api.github.com/users/davidmarin","gravatar_id":"2b5b729537aaef280639ce21fc2194c1","avatar_url":"https://secure.gravatar.com/avatar/2b5b729537aaef280639ce21fc2194c1?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"created_at":"2011-12-27T18:37:30Z","updated_at":"2011-12-27T18:37:30Z","id":3283986,"body":"Yeah, `set_status()` really should take its message as a unicode, not a bytestring. Same for `increment_counter()`.\r\n\r\nI assume Hadoop uses UTF-8 to encode/decode unicode (what else would it use?) but we should hand-test this. If so, the fix is to UTF-8-encode the message before printing it. We should also phase out the use of bytestrings in status messages.\r\n","url":"https://api.github.com/repos/Yelp/mrjob/issues/comments/3283986"},"action":"created"}