{"action":"created","issue":{"url":"https://api.github.com/repos/alimanfoo/petl/issues/350","labels_url":"https://api.github.com/repos/alimanfoo/petl/issues/350/labels{/name}","comments_url":"https://api.github.com/repos/alimanfoo/petl/issues/350/comments","events_url":"https://api.github.com/repos/alimanfoo/petl/issues/350/events","html_url":"https://github.com/alimanfoo/petl/issues/350","id":119918293,"number":350,"title":"Utility functions fieldnames() and dicts() don't support unicode fieldnames","user":{"login":"sv1jsb","id":606540,"avatar_url":"https://avatars.githubusercontent.com/u/606540?v=3","gravatar_id":"","url":"https://api.github.com/users/sv1jsb","html_url":"https://github.com/sv1jsb","followers_url":"https://api.github.com/users/sv1jsb/followers","following_url":"https://api.github.com/users/sv1jsb/following{/other_user}","gists_url":"https://api.github.com/users/sv1jsb/gists{/gist_id}","starred_url":"https://api.github.com/users/sv1jsb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sv1jsb/subscriptions","organizations_url":"https://api.github.com/users/sv1jsb/orgs","repos_url":"https://api.github.com/users/sv1jsb/repos","events_url":"https://api.github.com/users/sv1jsb/events{/privacy}","received_events_url":"https://api.github.com/users/sv1jsb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/alimanfoo/petl/milestones/27","html_url":"https://github.com/alimanfoo/petl/milestones/v1.1","labels_url":"https://api.github.com/repos/alimanfoo/petl/milestones/27/labels","id":1430047,"number":27,"title":"v1.1","description":"","creator":{"login":"alimanfoo","id":703554,"avatar_url":"https://avatars.githubusercontent.com/u/703554?v=3","gravatar_id":"","url":"https://api.github.com/users/alimanfoo","html_url":"https://github.com/alimanfoo","followers_url":"https://api.github.com/users/alimanfoo/followers","following_url":"https://api.github.com/users/alimanfoo/following{/other_user}","gists_url":"https://api.github.com/users/alimanfoo/gists{/gist_id}","starred_url":"https://api.github.com/users/alimanfoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alimanfoo/subscriptions","organizations_url":"https://api.github.com/users/alimanfoo/orgs","repos_url":"https://api.github.com/users/alimanfoo/repos","events_url":"https://api.github.com/users/alimanfoo/events{/privacy}","received_events_url":"https://api.github.com/users/alimanfoo/received_events","type":"User","site_admin":false},"open_issues":20,"closed_issues":0,"state":"open","created_at":"2015-11-25T20:30:11Z","updated_at":"2015-12-02T11:44:04Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-12-02T11:02:42Z","updated_at":"2015-12-02T16:58:58Z","closed_at":null,"body":"Hello,\r\nFirst of all thank you very much for petl. Very useful.\r\n\r\nI am using petl to manipulate csv files from excel.\r\nLoading is done with the fromcsv() function.\r\nColumns have titles with non ASCII characters and file encoding is utf-8.\r\nLoading is done flawlessly, but when I try to get the table as a list of dicts,\r\nwith the help petl.dicts() function, I get the well known error:\r\n\r\n    UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-6: ordinal not in range(128)\r\n\r\nI have narrowed down the problem to the base.asdicts and base.fieldnames functions which\r\nuse the str() function and not the unicode(), while iterating through the header fields.\r\n\r\nI am using python 2.7.\r\n\r\nBest regards,\r\nAndreas\r\n"},"comment":{"url":"https://api.github.com/repos/alimanfoo/petl/issues/comments/161364144","html_url":"https://github.com/alimanfoo/petl/issues/350#issuecomment-161364144","issue_url":"https://api.github.com/repos/alimanfoo/petl/issues/350","id":161364144,"user":{"login":"sv1jsb","id":606540,"avatar_url":"https://avatars.githubusercontent.com/u/606540?v=3","gravatar_id":"","url":"https://api.github.com/users/sv1jsb","html_url":"https://github.com/sv1jsb","followers_url":"https://api.github.com/users/sv1jsb/followers","following_url":"https://api.github.com/users/sv1jsb/following{/other_user}","gists_url":"https://api.github.com/users/sv1jsb/gists{/gist_id}","starred_url":"https://api.github.com/users/sv1jsb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sv1jsb/subscriptions","organizations_url":"https://api.github.com/users/sv1jsb/orgs","repos_url":"https://api.github.com/users/sv1jsb/repos","events_url":"https://api.github.com/users/sv1jsb/events{/privacy}","received_events_url":"https://api.github.com/users/sv1jsb/received_events","type":"User","site_admin":false},"created_at":"2015-12-02T16:58:58Z","updated_at":"2015-12-02T16:58:58Z","body":"Thanks Alistair,\r\nI can help , if you 'd like, making a pull request.\r\nI will only change the aforementioned lines.\r\n"}}