diff --git a/lib/redcarpet/render/gitlab_html.rb b/lib/redcarpet/render/gitlab_html.rb
index 29be4780..638c227c 100644
--- a/lib/redcarpet/render/gitlab_html.rb
+++ b/lib/redcarpet/render/gitlab_html.rb
@@ -1,9 +1,9 @@
class Redcarpet::Render::GitlabHTML < Redcarpet::Render::HTML
def block_code(code, language)
if Pygments::Lexer.find(language)
- Pygments.highlight(code, :lexer => language)
+ Pygments.highlight(code, :lexer => language, :options => {:encoding => 'utf-8'})
else
- Pygments.highlight(code)
+ Pygments.highlight(code, :options => {:encoding => 'utf-8'})
end
end
-end
\ No newline at end of file
+end