walle/gimli — pull request #51 by toshi-kawanishi (2013-12-10 02:57:21+00:00)
Title: Fix garbled characters with code blocks including utf-8 strings

The utf-8 strings in code blocks seem to be garbled.

So I add a spec with a utf-8 fixture and it is failed:

```
Failures:

1) Gimli::Markup::Renderer should render html with code blocks including utf-8 strings
Failure/Error: markup.render.strip.should == output.strip
expected: "

\n

まつもとゆきひろ

\n

"
got: "

\n

������������������������

\n

" (using ==)
Diff:
@@ -1,4 +1,4 @@

-

まつもとゆきひろ

+

������������������������

# ./spec/gimli/markup/renderer_spec.rb:28:in `block (2 levels) in '
```

The changes fix this issue.