Commit d4efb166 authored by tmaruyama's avatar tmaruyama
Browse files

set html encoding utf8 at Diff class (#12641)

git-svn-id: e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 83bb2aca
......@@ -260,6 +260,12 @@ module Redmine
def line_to_html(line, offsets)
html = line_to_html_raw(line, offsets)
html.force_encoding('UTF-8') if html.respond_to?(:force_encoding)
def line_to_html_raw(line, offsets)
if offsets
s = ''
unless offsets.first == 0
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