{"action":"created","issue":{"url":"https://api.github.com/repos/jdunck/python-unicodecsv/issues/75","repository_url":"https://api.github.com/repos/jdunck/python-unicodecsv","labels_url":"https://api.github.com/repos/jdunck/python-unicodecsv/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/jdunck/python-unicodecsv/issues/75/comments","events_url":"https://api.github.com/repos/jdunck/python-unicodecsv/issues/75/events","html_url":"https://github.com/jdunck/python-unicodecsv/issues/75","id":147499277,"number":75,"title":"utf-8 file with BOM passes BOM as part of first header NAME","user":{"login":"ccoulter","id":8813431,"avatar_url":"https://avatars.githubusercontent.com/u/8813431?v=3","gravatar_id":"","url":"https://api.github.com/users/ccoulter","html_url":"https://github.com/ccoulter","followers_url":"https://api.github.com/users/ccoulter/followers","following_url":"https://api.github.com/users/ccoulter/following{/other_user}","gists_url":"https://api.github.com/users/ccoulter/gists{/gist_id}","starred_url":"https://api.github.com/users/ccoulter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccoulter/subscriptions","organizations_url":"https://api.github.com/users/ccoulter/orgs","repos_url":"https://api.github.com/users/ccoulter/repos","events_url":"https://api.github.com/users/ccoulter/events{/privacy}","received_events_url":"https://api.github.com/users/ccoulter/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-11T17:32:54Z","updated_at":"2016-04-11T19:04:05Z","closed_at":"2016-04-11T19:04:05Z","body":"If my file/stream starts with the UTF-8 BOM (3 char \\xef\\xbb\\xbf), it is passed through as part of the first header (or first data value on the first row).  \r\n\r\nShould unicodecsv handle this (remove it), or should the user sniff for and skip over it before instantiating the UnicodeReader class?\r\n\r\nWhat do you think the best way to handle this is?  FWIIW, I'm using Python 2.7."},"comment":{"url":"https://api.github.com/repos/jdunck/python-unicodecsv/issues/comments/208503032","html_url":"https://github.com/jdunck/python-unicodecsv/issues/75#issuecomment-208503032","issue_url":"https://api.github.com/repos/jdunck/python-unicodecsv/issues/75","id":208503032,"user":{"login":"ccoulter","id":8813431,"avatar_url":"https://avatars.githubusercontent.com/u/8813431?v=3","gravatar_id":"","url":"https://api.github.com/users/ccoulter","html_url":"https://github.com/ccoulter","followers_url":"https://api.github.com/users/ccoulter/followers","following_url":"https://api.github.com/users/ccoulter/following{/other_user}","gists_url":"https://api.github.com/users/ccoulter/gists{/gist_id}","starred_url":"https://api.github.com/users/ccoulter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccoulter/subscriptions","organizations_url":"https://api.github.com/users/ccoulter/orgs","repos_url":"https://api.github.com/users/ccoulter/repos","events_url":"https://api.github.com/users/ccoulter/events{/privacy}","received_events_url":"https://api.github.com/users/ccoulter/received_events","type":"User","site_admin":false},"created_at":"2016-04-11T19:04:05Z","updated_at":"2016-04-11T19:04:05Z","body":"Thanks.  That seems to have fixed it.  Most of my CSVs are generated on Windows even though I'm processing them on Linux."}}