{"issue":{"created_at":"2010-07-01T16:01:04Z","state":"open","updated_at":"2011-12-15T19:27:00Z","user":{"gravatar_id":"072d6a69039ba4ca7e4d9c8118225cf0","id":44368,"url":"https://api.github.com/users/blakesmith","login":"blakesmith","avatar_url":"https://secure.gravatar.com/avatar/072d6a69039ba4ca7e4d9c8118225cf0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":9,"body":"With Ruby 1.8, incorrect UTF-8 encoded characters are silently ignored. If you have a post with incorrect UTF-8 characters in the content body, they will show up in your rendered page as question marks (unknown characters).\n\nA user upgrading from Ruby 1.8 to Ruby 1.9 who's site seemed to be working fine would get a weird error when trying to render their site (assuming it had incorrectly encoded UTF-8 characters):\n\n<pre>\n/Users/blake/projects/jekyll/lib/jekyll/convertible.rb:26:in `read_yaml': invalid byte sequence in UTF-8\n (ArgumentError)\n        from /Users/blake/projects/jekyll/lib/jekyll/post.rb:39:in `initialize'\n        from /Users/blake/projects/jekyll/lib/jekyll/site.rb:110:in `new'\n        from /Users/blake/projects/jekyll/lib/jekyll/site.rb:110:in `block in read_posts'\n        from /Users/blake/projects/jekyll/lib/jekyll/site.rb:108:in `each'\n        from /Users/blake/projects/jekyll/lib/jekyll/site.rb:108:in `read_posts'\n        from /Users/blake/projects/jekyll/lib/jekyll/site.rb:169:in `read_directories'\n        from /Users/blake/projects/jekyll/lib/jekyll/site.rb:79:in `read'\n        from /Users/blake/projects/jekyll/lib/jekyll/site.rb:71:in `process'\n        from ../jekyll/bin/jekyll:150:in `<main>'\n</pre>\n\nThis doesn't really help the user fix the problem post. [This commit](http://github.com/blakesmith/jekyll/commit/391a61cd43816f4f8ec0168311bede2743cfe268) will at least display the problem post so that the user knows what needs to be fixed for the site to render successfully.\n\nThis is mainly an issue of how Ruby decides to handle String encodings by default. You can read more about it here: http://blog.grayproductions.net/articles/ruby_19s_string","assignee":null,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"id":236119,"number":188,"labels":[],"title":"Ruby 1.9 character encoding changes","html_url":"https://github.com/mojombo/jekyll/issues/188","closed_at":null,"url":"https://api.github.com/repos/mojombo/jekyll/issues/188","milestone":null},"action":"created","comment":{"created_at":"2011-12-15T19:27:00Z","updated_at":"2011-12-15T19:27:00Z","user":{"gravatar_id":"c9d3acde017deca896e50e23ae65d972","id":596870,"url":"https://api.github.com/users/sdsalyer","login":"sdsalyer","avatar_url":"https://secure.gravatar.com/avatar/c9d3acde017deca896e50e23ae65d972?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"I'm trying to get a post-receive hook to work on Arch Linux with Ruby 1.9 and I'm getting this ASCII error.  I've tried adding the UTF-8 settings to my .profile, but I'm still getting the error.  I assume the git hook doesn't use my .profile, though.   Any further suggestions?","id":3167466,"url":"https://api.github.com/repos/mojombo/jekyll/issues/comments/3167466"}}