{"action":"created","issue":{"url":"https://api.github.com/repos/joeyespo/grip/issues/86","labels_url":"https://api.github.com/repos/joeyespo/grip/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/joeyespo/grip/issues/86/comments","events_url":"https://api.github.com/repos/joeyespo/grip/issues/86/events","html_url":"https://github.com/joeyespo/grip/issues/86","id":47934364,"number":86,"title":"Support chinese or others non-ascii language","user":{"login":"laomo","id":1088704,"avatar_url":"https://avatars.githubusercontent.com/u/1088704?v=3","gravatar_id":"","url":"https://api.github.com/users/laomo","html_url":"https://github.com/laomo","followers_url":"https://api.github.com/users/laomo/followers","following_url":"https://api.github.com/users/laomo/following{/other_user}","gists_url":"https://api.github.com/users/laomo/gists{/gist_id}","starred_url":"https://api.github.com/users/laomo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laomo/subscriptions","organizations_url":"https://api.github.com/users/laomo/orgs","repos_url":"https://api.github.com/users/laomo/repos","events_url":"https://api.github.com/users/laomo/events{/privacy}","received_events_url":"https://api.github.com/users/laomo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2014-11-06T08:21:16Z","updated_at":"2015-02-06T05:52:18Z","closed_at":null,"body":"add \r\n```\r\nimport sys\r\nreload(sys)\r\nsys.setdefaultencoding('utf-8')\r\n```\r\nbefore https://github.com/joeyespo/grip/blob/master/grip/server.py#L11\r\n\r\nto support chinese file name"},"comment":{"url":"https://api.github.com/repos/joeyespo/grip/issues/comments/73186407","html_url":"https://github.com/joeyespo/grip/issues/86#issuecomment-73186407","issue_url":"https://api.github.com/repos/joeyespo/grip/issues/86","id":73186407,"user":{"login":"joeyespo","id":634573,"avatar_url":"https://avatars.githubusercontent.com/u/634573?v=3","gravatar_id":"","url":"https://api.github.com/users/joeyespo","html_url":"https://github.com/joeyespo","followers_url":"https://api.github.com/users/joeyespo/followers","following_url":"https://api.github.com/users/joeyespo/following{/other_user}","gists_url":"https://api.github.com/users/joeyespo/gists{/gist_id}","starred_url":"https://api.github.com/users/joeyespo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joeyespo/subscriptions","organizations_url":"https://api.github.com/users/joeyespo/orgs","repos_url":"https://api.github.com/users/joeyespo/repos","events_url":"https://api.github.com/users/joeyespo/events{/privacy}","received_events_url":"https://api.github.com/users/joeyespo/received_events","type":"User","site_admin":false},"created_at":"2015-02-06T05:52:18Z","updated_at":"2015-02-06T05:52:18Z","body":"Ok. Makes sense.\r\n\r\n@ssokolow Would adding the following to `command.py` work? That'll make sure that using grip as a library won't unintentionally monkey-patch the parent project.\r\n\r\ndef main(argv=None, force_utf8=True):\r\n    \"\"\"The entry point of the application.\"\"\"\r\n    if force_utf8 and sys.version_info.major == 2:\r\n      reload(sys)\r\n      sys.setdefaultencoding('utf-8')\r\n    ...\r\n"}}