{"action":"opened","issue":{"url":"https://api.github.com/repos/pydotorg/notawesome/issues/2","labels_url":"https://api.github.com/repos/pydotorg/notawesome/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/pydotorg/notawesome/issues/2/comments","events_url":"https://api.github.com/repos/pydotorg/notawesome/issues/2/events","html_url":"https://github.com/pydotorg/notawesome/issues/2","id":110471434,"number":2,"title":"can't read non-ascii params from sys.argv on Windows","user":{"login":"techtonik","id":515889,"avatar_url":"https://avatars.githubusercontent.com/u/515889?v=3","gravatar_id":"","url":"https://api.github.com/users/techtonik","html_url":"https://github.com/techtonik","followers_url":"https://api.github.com/users/techtonik/followers","following_url":"https://api.github.com/users/techtonik/following{/other_user}","gists_url":"https://api.github.com/users/techtonik/gists{/gist_id}","starred_url":"https://api.github.com/users/techtonik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/techtonik/subscriptions","organizations_url":"https://api.github.com/users/techtonik/orgs","repos_url":"https://api.github.com/users/techtonik/repos","events_url":"https://api.github.com/users/techtonik/events{/privacy}","received_events_url":"https://api.github.com/users/techtonik/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pydotorg/notawesome/labels/windows","name":"windows","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-08T15:04:24Z","updated_at":"2015-10-08T15:04:24Z","closed_at":null,"body":"On Windows, if you try to pass text in encoding different than ASCII, Python will replace it with question marks.\r\n\r\ntest2.py\r\n```\r\nimport sys\r\n\r\nwith open('data.bin', 'wb') as binfile:\r\n  for arg in sys.argv:\r\n    binfile.write(arg)\r\n    binfile.write(' ')\r\n```\r\n\r\n```\r\n> python test2.py Русский текст\r\n> type data.bin\r\nE:\\test2.py ??????? ?????\r\n```"}}