Added force utf8 encoding

This commit is contained in:
Nek 2012-05-19 12:12:49 +02:00
parent 860e3ab526
commit 8c7c43b94f
2 changed files with 5 additions and 5 deletions

View file

@ -42,9 +42,9 @@
.readme
- if content.name =~ /\.(md|markdown)$/i
= preserve do
= markdown(content.data)
= markdown(content.data.force_encoding('UTF-8'))
- else
= simple_format(content.data)
= simple_format(content.data.force_encoding('UTF-8'))
- if params[:path]
- history_path = tree_file_project_ref_path(@project, @ref, params[:path])

View file

@ -13,7 +13,7 @@
#tree-readme-holder
.readme
= preserve do
= markdown(file.data)
= markdown(file.data.force_encoding('UTF-8'))
- else
.view_file_content
- unless file.empty?