tanoku/redcarpet — pull request #96 by bostonaholic (2011-12-31 04:58:26+00:00)
Title: Fix for Pull Request #95 - preserve encoding during Markdown#render

Here's a solution I have come up with which passes the test for Pull Request #95.

Essentially:

`redcarpet.h` will `#define redcarpet_str_new` based on `HAVE_RUBY_ENCODING_H` with or without a third argument of `rb_encoding`.

Then, `rc_markdown.c` and `rc_render.c` will pass the `rb_encoding` of the string directly.

This should now work for all encodings, but please review.