{"action":"created","issue":{"url":"https://api.github.com/repos/dae/anki/issues/124","repository_url":"https://api.github.com/repos/dae/anki","labels_url":"https://api.github.com/repos/dae/anki/issues/124/labels{/name}","comments_url":"https://api.github.com/repos/dae/anki/issues/124/comments","events_url":"https://api.github.com/repos/dae/anki/issues/124/events","html_url":"https://github.com/dae/anki/pull/124","id":148949104,"number":124,"title":"Deal with Internationalized Domain Name in URI","user":{"login":"frp","id":346809,"avatar_url":"https://avatars.githubusercontent.com/u/346809?v=3","gravatar_id":"","url":"https://api.github.com/users/frp","html_url":"https://github.com/frp","followers_url":"https://api.github.com/users/frp/followers","following_url":"https://api.github.com/users/frp/following{/other_user}","gists_url":"https://api.github.com/users/frp/gists{/gist_id}","starred_url":"https://api.github.com/users/frp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frp/subscriptions","organizations_url":"https://api.github.com/users/frp/orgs","repos_url":"https://api.github.com/users/frp/repos","events_url":"https://api.github.com/users/frp/events{/privacy}","received_events_url":"https://api.github.com/users/frp/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-17T12:52:16Z","updated_at":"2016-04-20T14:15:24Z","closed_at":"2016-04-20T12:44:43Z","pull_request":{"url":"https://api.github.com/repos/dae/anki/pulls/124","html_url":"https://github.com/dae/anki/pull/124","diff_url":"https://github.com/dae/anki/pull/124.diff","patch_url":"https://github.com/dae/anki/pull/124.patch"},"body":"This fixes https://anki.tenderapp.com/discussions/ankidesktop/17132-anki-reports-an-error-when-pasting-an-image-from-non-ascii-url\r\n\r\nThe problem is that urllib2 can't work with IDN. However, it's perfectly valid\r\nto have such URIs in HTML, and Firefox, when copying image, generates exactly\r\nthis kind of HTML."},"comment":{"url":"https://api.github.com/repos/dae/anki/issues/comments/212443261","html_url":"https://github.com/dae/anki/pull/124#issuecomment-212443261","issue_url":"https://api.github.com/repos/dae/anki/issues/124","id":212443261,"user":{"login":"frp","id":346809,"avatar_url":"https://avatars.githubusercontent.com/u/346809?v=3","gravatar_id":"","url":"https://api.github.com/users/frp","html_url":"https://github.com/frp","followers_url":"https://api.github.com/users/frp/followers","following_url":"https://api.github.com/users/frp/following{/other_user}","gists_url":"https://api.github.com/users/frp/gists{/gist_id}","starred_url":"https://api.github.com/users/frp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frp/subscriptions","organizations_url":"https://api.github.com/users/frp/orgs","repos_url":"https://api.github.com/users/frp/repos","events_url":"https://api.github.com/users/frp/events{/privacy}","received_events_url":"https://api.github.com/users/frp/received_events","type":"User","site_admin":false},"created_at":"2016-04-20T14:15:24Z","updated_at":"2016-04-20T14:15:24Z","body":"> The patch doesn't seem to work for me:\r\n\r\nThat's unexpected. What is your platform and browser?\r\n\r\nIf you put something like `print netloc` in the code above that line on the machine that reproduces the problem, what would be the output?\r\n\r\nI believe I understand the problem (seems like netloc is the actual unicode in your case: my bad that I didn't take in account that it's perfectly possible), but I'd still like to be able to reproduce it. Honestly, I tested it only on the machine with Fedora & Firefox."}}