schacon/showoff — pull request #183 by jcoglan (2012-05-13 23:22:13+00:00)
Title: Running under nginx+passenger throws an encoding error

If you try to serve a Showoff deck under nginx+passenger, you get this when trying to load the slides:

```
ArgumentError - invalid byte sequence in US-ASCII:
/home/jcoglan/www/slides.jcoglan.com/app/vendor/showoff/lib/showoff.rb:149:in `process_markdown'
/home/jcoglan/www/slides.jcoglan.com/app/vendor/showoff/lib/showoff.rb:356:in `block (2 levels) in get_slides_html'
/home/jcoglan/www/slides.jcoglan.com/app/vendor/showoff/lib/showoff.rb:354:in `each'
/home/jcoglan/www/slides.jcoglan.com/app/vendor/showoff/lib/showoff.rb:354:in `block in get_slides_html'
/home/jcoglan/www/slides.jcoglan.com/app/vendor/showoff/lib/showoff.rb:345:in `each'
/home/jcoglan/www/slides.jcoglan.com/app/vendor/showoff/lib/showoff.rb:345:in `get_slides_html'
/home/jcoglan/www/slides.jcoglan.com/app/vendor/showoff/lib/showoff.rb:459:in `slides'
...
```

This patch forces the Markdown content to UTF-8 encoding to stop the error.