{"action":"opened","issue":{"url":"https://api.github.com/repos/waditu/tushare/issues/39","labels_url":"https://api.github.com/repos/waditu/tushare/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/waditu/tushare/issues/39/comments","events_url":"https://api.github.com/repos/waditu/tushare/issues/39/events","html_url":"https://github.com/waditu/tushare/issues/39","id":94661785,"number":39,"title":"get_industry_classified()保存成csv报错","user":{"login":"xlbaojun","id":6441311,"avatar_url":"https://avatars.githubusercontent.com/u/6441311?v=3","gravatar_id":"","url":"https://api.github.com/users/xlbaojun","html_url":"https://github.com/xlbaojun","followers_url":"https://api.github.com/users/xlbaojun/followers","following_url":"https://api.github.com/users/xlbaojun/following{/other_user}","gists_url":"https://api.github.com/users/xlbaojun/gists{/gist_id}","starred_url":"https://api.github.com/users/xlbaojun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xlbaojun/subscriptions","organizations_url":"https://api.github.com/users/xlbaojun/orgs","repos_url":"https://api.github.com/users/xlbaojun/repos","events_url":"https://api.github.com/users/xlbaojun/events{/privacy}","received_events_url":"https://api.github.com/users/xlbaojun/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-13T08:00:10Z","updated_at":"2015-07-13T08:00:10Z","closed_at":null,"body":"把get_industry_classified()获得数据保存成csv的时候报错，保存成xls没问题  \r\n把get_stock_basics()获得的数据保存成csv没问题\r\n\r\n\r\n```python\r\ndata2 = ts.get_industry_classified()\r\nprint('\\nget classified ...ok')\r\ndata2.to_csv('D:/Other/PY/data/industry_classified2.csv')\r\nprint('save classified ...ok')\r\n```  \r\n```\r\n[Getting data:]#################################################Traceback (most recent call last):\r\n  File \"D:/Other/PY/tuShareGetStockList.py\", line 13, in <module>\r\n    data2.to_csv('D:/Other/PY/data/industry_classified2.csv')\r\n  File \"D:\\Soft\\Anaconda\\lib\\site-packages\\pandas\\core\\frame.py\", line 1189, in to_csv\r\n    formatter.save()\r\n  File \"D:\\Soft\\Anaconda\\lib\\site-packages\\pandas\\core\\format.py\", line 1467, in save\r\n\r\nget classified ...ok\r\n    self._save()\r\n  File \"D:\\Soft\\Anaconda\\lib\\site-packages\\pandas\\core\\format.py\", line 1567, in _save\r\n    self._save_chunk(start_i, end_i)\r\n  File \"D:\\Soft\\Anaconda\\lib\\site-packages\\pandas\\core\\format.py\", line 1594, in _save_chunk\r\n    lib.write_csv_rows(self.data, ix, self.nlevels, self.cols, self.writer)\r\n  File \"pandas\\lib.pyx\", line 975, in pandas.lib.write_csv_rows (pandas\\lib.c:17612)\r\nUnicodeEncodeError: 'ascii' codec can't encode characters in position 0-3: ordinal not in range(128)\r\n\r\nProcess finished with exit code 1\r\n```"}}