{"issue":{"created_at":"2011-11-23T19:26:52Z","state":"open","updated_at":"2011-11-24T10:23:59Z","user":{"gravatar_id":"70c9cbfb3fc4629023323f2ce41259b7","id":593461,"url":"https://api.github.com/users/laarmen","login":"laarmen","avatar_url":"https://secure.gravatar.com/avatar/70c9cbfb3fc4629023323f2ce41259b7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":2,"body":"When using _mb_request with a unicode string containing non-ASCII\r\ncharacters as query, the URL encoding fails because it tries to use the\r\nASCII encoding on those characters by default. By providing an 8-bits\r\nstring, it does not try to reencode it.\r\n\r\nThis bug is referenced in the issue tracker as #28\r\n\r\nCheers,\r\n\r\nSimon","assignee":null,"pull_request":{"patch_url":"https://github.com/alastair/python-musicbrainz-ngs/pull/29.patch","html_url":"https://github.com/alastair/python-musicbrainz-ngs/pull/29","diff_url":"https://github.com/alastair/python-musicbrainz-ngs/pull/29.diff"},"id":2333595,"labels":[],"number":29,"title":"Unicode-related fix","closed_at":null,"html_url":"https://github.com/alastair/python-musicbrainz-ngs/issues/29","milestone":null,"url":"https://api.github.com/repos/alastair/python-musicbrainz-ngs/issues/29"},"action":"created","comment":{"created_at":"2011-11-24T10:23:59Z","updated_at":"2011-11-24T10:23:59Z","user":{"gravatar_id":"70c9cbfb3fc4629023323f2ce41259b7","id":593461,"url":"https://api.github.com/users/laarmen","login":"laarmen","avatar_url":"https://secure.gravatar.com/avatar/70c9cbfb3fc4629023323f2ce41259b7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"This seems about right. I agree that the encoding should occur in\n_mb_request and not sooner, as it allows the rest of the code not to be\naware of this implementation detail.","id":2861003,"url":"https://api.github.com/repos/alastair/python-musicbrainz-ngs/issues/comments/2861003"}}