{"action":"created","issue":{"url":"https://api.github.com/repos/FlorianRappl/AngleSharp/issues/105","labels_url":"https://api.github.com/repos/FlorianRappl/AngleSharp/issues/105/labels{/name}","comments_url":"https://api.github.com/repos/FlorianRappl/AngleSharp/issues/105/comments","events_url":"https://api.github.com/repos/FlorianRappl/AngleSharp/issues/105/events","html_url":"https://github.com/FlorianRappl/AngleSharp/issues/105","id":90691807,"number":105,"title":"\"The output char buffer is too small to contain the decoded characters\"","user":{"login":"CrackHD","id":5148375,"avatar_url":"https://avatars.githubusercontent.com/u/5148375?v=3","gravatar_id":"","url":"https://api.github.com/users/CrackHD","html_url":"https://github.com/CrackHD","followers_url":"https://api.github.com/users/CrackHD/followers","following_url":"https://api.github.com/users/CrackHD/following{/other_user}","gists_url":"https://api.github.com/users/CrackHD/gists{/gist_id}","starred_url":"https://api.github.com/users/CrackHD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CrackHD/subscriptions","organizations_url":"https://api.github.com/users/CrackHD/orgs","repos_url":"https://api.github.com/users/CrackHD/repos","events_url":"https://api.github.com/users/CrackHD/events{/privacy}","received_events_url":"https://api.github.com/users/CrackHD/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/FlorianRappl/AngleSharp/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/FlorianRappl/AngleSharp/milestones/9","html_url":"https://github.com/FlorianRappl/AngleSharp/milestones/v0.8.6","labels_url":"https://api.github.com/repos/FlorianRappl/AngleSharp/milestones/9/labels","id":1168401,"number":9,"title":"v0.8.6","description":"","creator":{"login":"FlorianRappl","id":1766191,"avatar_url":"https://avatars.githubusercontent.com/u/1766191?v=3","gravatar_id":"","url":"https://api.github.com/users/FlorianRappl","html_url":"https://github.com/FlorianRappl","followers_url":"https://api.github.com/users/FlorianRappl/followers","following_url":"https://api.github.com/users/FlorianRappl/following{/other_user}","gists_url":"https://api.github.com/users/FlorianRappl/gists{/gist_id}","starred_url":"https://api.github.com/users/FlorianRappl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FlorianRappl/subscriptions","organizations_url":"https://api.github.com/users/FlorianRappl/orgs","repos_url":"https://api.github.com/users/FlorianRappl/repos","events_url":"https://api.github.com/users/FlorianRappl/events{/privacy}","received_events_url":"https://api.github.com/users/FlorianRappl/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":9,"state":"open","created_at":"2015-06-17T11:42:00Z","updated_at":"2015-06-28T14:51:17Z","due_on":"2015-07-01T04:00:00Z","closed_at":null},"comments":9,"created_at":"2015-06-24T14:27:08Z","updated_at":"2015-06-28T14:53:18Z","closed_at":"2015-06-28T14:51:17Z","body":"Sometimes i get errors building IDocument from byte stream, using BrowsingContext as DocumentBuilder class does. Sometimes i get an exception:\r\n\r\n**The output char buffer is too small to contain the decoded characters, encoding 'Unicode (UTF-8)' fallback 'System.Text.DecoderReplacementFallback'.**\r\n\r\nThis was from byte output from http://independent.co.uk/ (site encoding is utf-8). \r\nCould you please explain why this error happens and what should i do."},"comment":{"url":"https://api.github.com/repos/FlorianRappl/AngleSharp/issues/comments/116288472","html_url":"https://github.com/FlorianRappl/AngleSharp/issues/105#issuecomment-116288472","issue_url":"https://api.github.com/repos/FlorianRappl/AngleSharp/issues/105","id":116288472,"user":{"login":"FlorianRappl","id":1766191,"avatar_url":"https://avatars.githubusercontent.com/u/1766191?v=3","gravatar_id":"","url":"https://api.github.com/users/FlorianRappl","html_url":"https://github.com/FlorianRappl","followers_url":"https://api.github.com/users/FlorianRappl/followers","following_url":"https://api.github.com/users/FlorianRappl/following{/other_user}","gists_url":"https://api.github.com/users/FlorianRappl/gists{/gist_id}","starred_url":"https://api.github.com/users/FlorianRappl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FlorianRappl/subscriptions","organizations_url":"https://api.github.com/users/FlorianRappl/orgs","repos_url":"https://api.github.com/users/FlorianRappl/repos","events_url":"https://api.github.com/users/FlorianRappl/events{/privacy}","received_events_url":"https://api.github.com/users/FlorianRappl/received_events","type":"User","site_admin":false},"created_at":"2015-06-28T14:53:18Z","updated_at":"2015-06-28T14:53:18Z","body":"I think I was able to fix the problem. At least for the cases described it is sufficient to increase the char buffer by a single element compared to the byte buffer. Also the other problem (infinite loop) is solved now."}}