{"action":"created","issue":{"url":"https://api.github.com/repos/JoshClose/CsvHelper/issues/1019","repository_url":"https://api.github.com/repos/JoshClose/CsvHelper","labels_url":"https://api.github.com/repos/JoshClose/CsvHelper/issues/1019/labels{/name}","comments_url":"https://api.github.com/repos/JoshClose/CsvHelper/issues/1019/comments","events_url":"https://api.github.com/repos/JoshClose/CsvHelper/issues/1019/events","html_url":"https://github.com/JoshClose/CsvHelper/issues/1019","id":320530111,"number":1019,"title":"Encoding no longer an available option for configuration?","user":{"login":"SeanKilleen","id":2148318,"avatar_url":"https://avatars0.githubusercontent.com/u/2148318?v=4","gravatar_id":"","url":"https://api.github.com/users/SeanKilleen","html_url":"https://github.com/SeanKilleen","followers_url":"https://api.github.com/users/SeanKilleen/followers","following_url":"https://api.github.com/users/SeanKilleen/following{/other_user}","gists_url":"https://api.github.com/users/SeanKilleen/gists{/gist_id}","starred_url":"https://api.github.com/users/SeanKilleen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SeanKilleen/subscriptions","organizations_url":"https://api.github.com/users/SeanKilleen/orgs","repos_url":"https://api.github.com/users/SeanKilleen/repos","events_url":"https://api.github.com/users/SeanKilleen/events{/privacy}","received_events_url":"https://api.github.com/users/SeanKilleen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-05T18:13:54Z","updated_at":"2018-05-07T15:39:25Z","closed_at":null,"author_association":"NONE","body":"Awesome library -- thank you for putting together such a great tool.\r\n\r\nI see [in the docs](http://joshclose.github.io/CsvHelper/configuration#encoding) the following example:\r\n\r\n```csharp\r\n// Change to whatever the CSV file was encoded in.\r\ncsv.Configuration.Encoding = Encoding.Unicode;\r\n```\r\n\r\nHowever, using the current CsvHelper (7.1.0), `Encoding` no longer appears to be available:\r\n\r\n> ![image](https://user-images.githubusercontent.com/2148318/39666232-6d132930-506e-11e8-84fe-31e98d86ec50.png)\r\n\r\nIs there a new, preferred way to adjust the encoding? Or is this no longer an option?\r\n\r\nI'm willing to do a PR for the docs once this is clarified."},"comment":{"url":"https://api.github.com/repos/JoshClose/CsvHelper/issues/comments/387106343","html_url":"https://github.com/JoshClose/CsvHelper/issues/1019#issuecomment-387106343","issue_url":"https://api.github.com/repos/JoshClose/CsvHelper/issues/1019","id":387106343,"user":{"login":"JoshClose","id":114971,"avatar_url":"https://avatars3.githubusercontent.com/u/114971?v=4","gravatar_id":"","url":"https://api.github.com/users/JoshClose","html_url":"https://github.com/JoshClose","followers_url":"https://api.github.com/users/JoshClose/followers","following_url":"https://api.github.com/users/JoshClose/following{/other_user}","gists_url":"https://api.github.com/users/JoshClose/gists{/gist_id}","starred_url":"https://api.github.com/users/JoshClose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoshClose/subscriptions","organizations_url":"https://api.github.com/users/JoshClose/orgs","repos_url":"https://api.github.com/users/JoshClose/repos","events_url":"https://api.github.com/users/JoshClose/events{/privacy}","received_events_url":"https://api.github.com/users/JoshClose/received_events","type":"User","site_admin":false},"created_at":"2018-05-07T15:39:25Z","updated_at":"2018-05-07T15:39:25Z","author_association":"OWNER","body":"It's only used when reading and counting bytes. You set it to the same encoding you're using in your `TextReader`.\r\n\r\nYou need to set the encoding you want to use in your `TextWriter`. CsvHelper doesn't care what you have set, it just writes to the writer. When you create your `StreamWriter`, use one of the options that you can pass in the encoding. https://msdn.microsoft.com/en-us/library/system.io.streamwriter.streamwriter(v=vs.110).aspx"}}
{"actor":{"display_login":"JoshClose"}}