{"action":"created","issue":{"url":"https://api.github.com/repos/jekyll/jekyll/issues/3890","labels_url":"https://api.github.com/repos/jekyll/jekyll/issues/3890/labels{/name}","comments_url":"https://api.github.com/repos/jekyll/jekyll/issues/3890/comments","events_url":"https://api.github.com/repos/jekyll/jekyll/issues/3890/events","html_url":"https://github.com/jekyll/jekyll/issues/3890","id":99060747,"number":3890,"title":"The \"invalid byte sequence in UTF-8\" error shall list the number of the offending line","user":{"login":"nikolay12","id":4038709,"avatar_url":"https://avatars.githubusercontent.com/u/4038709?v=3","gravatar_id":"","url":"https://api.github.com/users/nikolay12","html_url":"https://github.com/nikolay12","followers_url":"https://api.github.com/users/nikolay12/followers","following_url":"https://api.github.com/users/nikolay12/following{/other_user}","gists_url":"https://api.github.com/users/nikolay12/gists{/gist_id}","starred_url":"https://api.github.com/users/nikolay12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikolay12/subscriptions","organizations_url":"https://api.github.com/users/nikolay12/orgs","repos_url":"https://api.github.com/users/nikolay12/repos","events_url":"https://api.github.com/users/nikolay12/events{/privacy}","received_events_url":"https://api.github.com/users/nikolay12/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-04T20:57:44Z","updated_at":"2015-08-04T22:16:11Z","closed_at":null,"body":"I've just finished a very long blog post (+1000 words). When I ran `jekyll server --trace` I got \r\n```\r\nError reading file /Users/nnikolo/Documents/private/rails_projects/fblog/nikolay12.github.io/_posts/2015-08-04-recording-credit-card-stripe-saas.markdown: invalid byte sequence in UTF-8 \r\n/Users/nnikolo/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jekyll-2.5.3/lib/jekyll/excerpt.rb:111:in `scan': invalid byte sequence in UTF-8 (ArgumentError)\r\n\tfrom /Users/nnikolo/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jekyll-2.5.3/lib/jekyll/excerpt.rb:111:in `extract_excerpt'\r\n\tfrom /Users/nnikolo/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jekyll-2.5.3/lib/jekyll/excerpt.rb:24:in `initialize'\r\n\tfrom /Users/nnikolo/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jekyll-2.5.3/lib/jekyll/post.rb:303:in `new'\r\n\tfrom /Users/nnikolo/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jekyll-2.5.3/lib/jekyll/post.rb:303:in `extract_excerpt'\r\n\tfrom /Users/nnikolo/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jekyll-2.5.3/lib/jekyll/post.rb:103:in `read_yaml'\r\n\tfrom /Users/nnikolo/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jekyll-2.5.3/lib/jekyll/post.rb:57:in `initialize'\r\n\tfrom /Users/nnikolo/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jekyll-2.5.3/lib/jekyll/site.rb:220:in `new'\r\n\tfrom /Users/nnikolo/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jekyll-2.5.3/lib/jekyll/site.rb:220:in `block in read_content'\r\n```\r\n\r\nWhich is very confusing as it does not say where is the problem. I need to now manually go through each line (and there are +200 of them). That's not handy. Can you, please, add more info to this error message?"},"comment":{"url":"https://api.github.com/repos/jekyll/jekyll/issues/comments/127777718","html_url":"https://github.com/jekyll/jekyll/issues/3890#issuecomment-127777718","issue_url":"https://api.github.com/repos/jekyll/jekyll/issues/3890","id":127777718,"user":{"login":"parkr","id":237985,"avatar_url":"https://avatars.githubusercontent.com/u/237985?v=3","gravatar_id":"","url":"https://api.github.com/users/parkr","html_url":"https://github.com/parkr","followers_url":"https://api.github.com/users/parkr/followers","following_url":"https://api.github.com/users/parkr/following{/other_user}","gists_url":"https://api.github.com/users/parkr/gists{/gist_id}","starred_url":"https://api.github.com/users/parkr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parkr/subscriptions","organizations_url":"https://api.github.com/users/parkr/orgs","repos_url":"https://api.github.com/users/parkr/repos","events_url":"https://api.github.com/users/parkr/events{/privacy}","received_events_url":"https://api.github.com/users/parkr/received_events","type":"User","site_admin":false},"created_at":"2015-08-04T22:16:11Z","updated_at":"2015-08-04T22:16:11Z","body":"Try adding `encoding: utf-8` to your `_config.yml` file."}}