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)
35 35
          # TODO: UTF-16 and Japanese CP932 which is imcompatible with ASCII
36 36
          #       In Japan, diffrence between file path encoding
37 37
          #       and file contents encoding is popular.
38
          line.force_encoding('ASCII-8BIT')
38
          line.force_encoding('UTF-8')
39 39
        end
40 40
        unless diff_table.add_line line
41 41
          line.force_encoding(line_encoding) if line_encoding
(3-3/3)