{"action":"created","issue":{"url":"https://api.github.com/repos/nicolaskruchten/jupyter_pivottablejs/issues/2","labels_url":"https://api.github.com/repos/nicolaskruchten/jupyter_pivottablejs/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/nicolaskruchten/jupyter_pivottablejs/issues/2/comments","events_url":"https://api.github.com/repos/nicolaskruchten/jupyter_pivottablejs/issues/2/events","html_url":"https://github.com/nicolaskruchten/jupyter_pivottablejs/issues/2","id":106257031,"number":2,"title":"UnicodeEncodeError when trying pivot_ui(df)","user":{"login":"Paul-Yuchao-Dong","id":7532271,"avatar_url":"https://avatars.githubusercontent.com/u/7532271?v=3","gravatar_id":"","url":"https://api.github.com/users/Paul-Yuchao-Dong","html_url":"https://github.com/Paul-Yuchao-Dong","followers_url":"https://api.github.com/users/Paul-Yuchao-Dong/followers","following_url":"https://api.github.com/users/Paul-Yuchao-Dong/following{/other_user}","gists_url":"https://api.github.com/users/Paul-Yuchao-Dong/gists{/gist_id}","starred_url":"https://api.github.com/users/Paul-Yuchao-Dong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Paul-Yuchao-Dong/subscriptions","organizations_url":"https://api.github.com/users/Paul-Yuchao-Dong/orgs","repos_url":"https://api.github.com/users/Paul-Yuchao-Dong/repos","events_url":"https://api.github.com/users/Paul-Yuchao-Dong/events{/privacy}","received_events_url":"https://api.github.com/users/Paul-Yuchao-Dong/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-14T01:52:46Z","updated_at":"2015-09-14T02:29:46Z","closed_at":null,"body":"Great tool for data exploration, I think this should be a core utility of Jupyter!\r\n\r\nI got the error message:\r\n*UnicodeEncodeError: 'ascii' codec can't encode characters in position 8-11: ordinal not in range(128)*\r\n\r\nI think it is because of of the pd.to_csv method, adding some encoding handling capability could fix this.\r\n\r\nBut not really sure how...\r\n\r\nthank you for the great js magic!\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/nicolaskruchten/jupyter_pivottablejs/issues/comments/139944764","html_url":"https://github.com/nicolaskruchten/jupyter_pivottablejs/issues/2#issuecomment-139944764","issue_url":"https://api.github.com/repos/nicolaskruchten/jupyter_pivottablejs/issues/2","id":139944764,"user":{"login":"Paul-Yuchao-Dong","id":7532271,"avatar_url":"https://avatars.githubusercontent.com/u/7532271?v=3","gravatar_id":"","url":"https://api.github.com/users/Paul-Yuchao-Dong","html_url":"https://github.com/Paul-Yuchao-Dong","followers_url":"https://api.github.com/users/Paul-Yuchao-Dong/followers","following_url":"https://api.github.com/users/Paul-Yuchao-Dong/following{/other_user}","gists_url":"https://api.github.com/users/Paul-Yuchao-Dong/gists{/gist_id}","starred_url":"https://api.github.com/users/Paul-Yuchao-Dong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Paul-Yuchao-Dong/subscriptions","organizations_url":"https://api.github.com/users/Paul-Yuchao-Dong/orgs","repos_url":"https://api.github.com/users/Paul-Yuchao-Dong/repos","events_url":"https://api.github.com/users/Paul-Yuchao-Dong/events{/privacy}","received_events_url":"https://api.github.com/users/Paul-Yuchao-Dong/received_events","type":"User","site_admin":false},"created_at":"2015-09-14T02:29:46Z","updated_at":"2015-09-14T02:29:46Z","body":"![image](https://cloud.githubusercontent.com/assets/7532271/9840879/2013f1be-5acb-11e5-9140-01a4902dfbad.png)\r\nSorry total newbie here, not sure how to do a proper uploading of the data.\r\n\r\nBasically, one of the columns contains character in Chinese, like 巴西出口投资促进局北京代表处.\r\n\r\nI tested using  pd.to_csv(encoding = 'utf-8'), and it can be properly output into a csv, I am using pandas 0.16+"}}