Commit 8c7c43b9 authored by Nek's avatar Nek

Added force utf8 encoding

parent 860e3ab5
...@@ -42,9 +42,9 @@ ...@@ -42,9 +42,9 @@
.readme .readme
- if content.name =~ /\.(md|markdown)$/i - if content.name =~ /\.(md|markdown)$/i
= preserve do = preserve do
= markdown(content.data) = markdown(content.data.force_encoding('UTF-8'))
- else - else
= simple_format(content.data) = simple_format(content.data.force_encoding('UTF-8'))
- if params[:path] - if params[:path]
- history_path = tree_file_project_ref_path(@project, @ref, params[:path]) - history_path = tree_file_project_ref_path(@project, @ref, params[:path])
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
#tree-readme-holder #tree-readme-holder
.readme .readme
= preserve do = preserve do
= markdown(file.data) = markdown(file.data.force_encoding('UTF-8'))
- else - else
.view_file_content .view_file_content
- unless file.empty? - unless file.empty?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment