プロジェクト

全般

プロフィール

Vote #81008

未完了

Wrong character encoding in git diffs with UTF-8 Cyrillic letters

Admin Redmine さんが約2年前に追加. 約2年前に更新.

ステータス:
Confirmed
優先度:
通常
担当者:
-
カテゴリ:
SCM_3
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
3
version_id:
0
issue_org_id:
33845
author_id:
21060
assigned_to_id:
0
comments:
3
status_id:
9
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
160
ステータス-->[Confirmed]

説明

Hello,

I use git repositories. The access to them is via Apache server running on Windows 10 machine. Several files contain Cyrillic texts in comments. These files are in UTF-8 encoding. Redmine shows these files well - the Cyrillic texts are readable. Example:

      puts "\nОбработени #{options[:passedfiles]} файла"
      puts "Пропуснати #{options[:omittedfiles]} файла"

However, these Cyrillic texts are not displayed well in revision diffs. Example:

  puts "\nОбработени #{options[:passedfiles]} файла"
  puts "Пропуснати #{options[:omittedfiles]} файла"

Environment:

Environment:
  Redmine version                4.1.1.stable
  Ruby version                   2.6.5-p114 (2019-10-01) [x64-mingw32]
  Rails version                  5.2.4.2
  Environment                    production
  Database adapter               Mysql2
  Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter
  Mailer delivery                smtp
SCM:
  Subversion                     1.8.19
  Git                            2.25.1
  Filesystem                     
Redmine plugins:
  issue_recurring                1.6
  redmine_code_review            1.0.0
  redmine_issue_templates        1.0.4
  redmine_latex_mathjax          0.4.0
  redmine_theme_changer          0.4.0

journals

I could not reproduce the issue. The diff displayed correctly.

What value is set for "Attachments and repositories encodings" (Administration > Settings > Files)?

!{width: 526px; border: 1px solid grey;}.33845-diff-screenshot.png!
--------------------------------------------------------------------------------
Two encodings are set in this order: @windows-1251@, @UTF-8@.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

Admin Redmine さんが約2年前に更新

  • カテゴリSCM_3 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0