{"action":"opened","issue":{"url":"https://api.github.com/repos/erdomke/RtfPipe/issues/5","repository_url":"https://api.github.com/repos/erdomke/RtfPipe","labels_url":"https://api.github.com/repos/erdomke/RtfPipe/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/erdomke/RtfPipe/issues/5/comments","events_url":"https://api.github.com/repos/erdomke/RtfPipe/issues/5/events","html_url":"https://github.com/erdomke/RtfPipe/issues/5","id":299336661,"number":5,"title":"Encoding for \"Windows-1252\" not working in .NET Core","user":{"login":"stefansolid","id":36732993,"avatar_url":"https://avatars1.githubusercontent.com/u/36732993?v=4","gravatar_id":"","url":"https://api.github.com/users/stefansolid","html_url":"https://github.com/stefansolid","followers_url":"https://api.github.com/users/stefansolid/followers","following_url":"https://api.github.com/users/stefansolid/following{/other_user}","gists_url":"https://api.github.com/users/stefansolid/gists{/gist_id}","starred_url":"https://api.github.com/users/stefansolid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefansolid/subscriptions","organizations_url":"https://api.github.com/users/stefansolid/orgs","repos_url":"https://api.github.com/users/stefansolid/repos","events_url":"https://api.github.com/users/stefansolid/events{/privacy}","received_events_url":"https://api.github.com/users/stefansolid/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-22T12:35:01Z","updated_at":"2018-02-22T12:35:01Z","closed_at":null,"author_association":"NONE","body":"In a ASP.NET Core application the encoding for windows was not found, the line below failed:\r\n\r\npublic static readonly Encoding AnsiEncoding = Encoding.GetEncoding(\"Windows-1252\");\r\n\r\nI downloaded the master branch, in which this was fixed according to issue history. However, I did not get it working correctly. But if I did this it worked just fine:\r\n\r\n1. Add nuget packet System.Text.Encoding.CodePages\r\n2. Change the line above to:\r\n\r\npublic static readonly Encoding AnsiEncoding = CodePagesEncodingProvider.Instance.GetEncoding(1252);\r\n\r\nIf not issue or if I did misbehave close issue as you see fit :)\r\n"}}
{"actor":{"display_login":"stefansolid"}}