{"comment":{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/comments/12972659","html_url":"https://github.com/pyinstaller/pyinstaller/commit/ac631de0ab8ad6dc2da8b9c845b42383a1baad32#commitcomment-12972659","id":12972659,"user":{"login":"codewarrior0","id":307683,"avatar_url":"https://avatars.githubusercontent.com/u/307683?v=3","gravatar_id":"","url":"https://api.github.com/users/codewarrior0","html_url":"https://github.com/codewarrior0","followers_url":"https://api.github.com/users/codewarrior0/followers","following_url":"https://api.github.com/users/codewarrior0/following{/other_user}","gists_url":"https://api.github.com/users/codewarrior0/gists{/gist_id}","starred_url":"https://api.github.com/users/codewarrior0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codewarrior0/subscriptions","organizations_url":"https://api.github.com/users/codewarrior0/orgs","repos_url":"https://api.github.com/users/codewarrior0/repos","events_url":"https://api.github.com/users/codewarrior0/events{/privacy}","received_events_url":"https://api.github.com/users/codewarrior0/received_events","type":"User","site_admin":false},"position":18,"line":68,"path":"PyInstaller/utils/hooks/hookutils.py","commit_id":"ac631de0ab8ad6dc2da8b9c845b42383a1baad32","created_at":"2015-08-31T10:04:39Z","updated_at":"2015-08-31T10:04:39Z","body":"The error you get is `UnicodeEncodeError: 'ascii' codec can't encode`, right?\r\n\r\n`mbcs` is the right encoding here, because on Python 2 for Windows, `os.environ` is implemented using the legacy ANSI version of the WinAPI."}}