We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04457b0 commit 7cb9c3bCopy full SHA for 7cb9c3b
lib/redmine_git_hosting/hooks/display_repository_readme.rb
@@ -55,7 +55,7 @@ def find_readme_file(repository, path, rev)
55
56
57
def get_formatter(repository, readme_file, rev)
58
- raw_readme_text = repository.cat(readme_file.path, rev)
+ raw_readme_text = Redmine::CodesetUtil.to_utf8_by_setting(repository.cat(readme_file.path, rev))
59
60
if MARKDOWN_EXT.include?(File.extname(readme_file.path))
61
formatter_name = Redmine::WikiFormatting.format_names.find { |name| name =~ /markdown/i }
0 commit comments