Project

General

Profile

Defect #12641 » unified_diff.rb.2.diff

Set utf-8 encoding - Filou Centrinov, 2013-03-05 12:54

View differences:

lib/redmine/unified_diff.rb (working copy)
# TODO: UTF-16 and Japanese CP932 which is imcompatible with ASCII
# In Japan, diffrence between file path encoding
# and file contents encoding is popular.
line.force_encoding('ASCII-8BIT')
line.force_encoding('UTF-8')
end
unless diff_table.add_line line
line.force_encoding(line_encoding) if line_encoding
(3-3/3)