{"issue":{"created_at":"2011-12-14T15:54:43Z","state":"closed","updated_at":"2011-12-14T15:54:44Z","user":{"gravatar_id":"86e49052bd9a5fb3eabfd7368b68bbb7","id":34519,"url":"https://api.github.com/users/jpellerin","login":"jpellerin","avatar_url":"https://secure.gravatar.com/avatar/86e49052bd9a5fb3eabfd7368b68bbb7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":1,"body":"If any test code prints a unicode string while running under nosetests with\noutput capture enabled, you get an exception like:\n\nUnicodeEncodeError: 'ascii' codec can't encode character u'\\xf6' in\nposition 1: ordinal not in range(128)\n\nTo see this problem, put the following function in a test.py file and run\nit with 'nosetests -v test.py:test_unicode':\n\ndef test_unicode():\n    print u'böy'\n\nIf output capture is disabled with --nocapture, everything works as expected.\n\nThis problem can be worked around by encoding all unicode strings before\nprinting, but that is a hassle for us since our entire project is unicode \ninternally.\n\nGoogle Code Info:\nIssue #: 227\nAuthor: schi...@gmail.com\nCreated On: 2009-01-12T07:12:14.000Z\nClosed On: ","assignee":{"gravatar_id":"86e49052bd9a5fb3eabfd7368b68bbb7","id":34519,"url":"https://api.github.com/users/jpellerin","login":"jpellerin","avatar_url":"https://secure.gravatar.com/avatar/86e49052bd9a5fb3eabfd7368b68bbb7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"id":2553197,"labels":[],"number":12,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"Captured unicode causes exception","html_url":"https://github.com/nose-devs/nose/issues/12","closed_at":"2011-12-14T15:54:43Z","url":"https://api.github.com/repos/nose-devs/nose/issues/12","milestone":null},"action":"closed"}