Actions
Patch #6416
closedWhen viewing utf-8 text file in repository, it is downloaded
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
SCM
Target version:
-
Start date:
2010-09-16
Due date:
% Done:
0%
Estimated time:
Description
I want to view the utf-8 text file in repository, but it is downloaded.
In RepositoriesController#entry(), String#is_binary_data? is used to determine the file is binary or not.
But String#is_binary_data? return true even if the file is utf-8 text.
I wrote a patch to fix this problem.
Files
Related issues
Updated by Yar Isakov about 14 years ago
I want to confirm this bug. Some files in utf-8 encoding are downloading instead of showing.
Updated by Toshi MARUYAMA almost 14 years ago
- Status changed from New to 7
- Assignee set to Toshi MARUYAMA
Updated by Toshi MARUYAMA almost 14 years ago
- Status changed from 7 to Closed
- Assignee deleted (
Toshi MARUYAMA)
I confirmed source:trunk/config/locales/ja.yml is as binary.
repositories_controller.patch is only for UTF-8.
Redmine supports multi encoding.
For example, ISO-8859-1, Japanese Shift_JIS, EUC-JP...
Iconv passes converting from ISO-8859-1 to UTF-8 with no error.
I will fix #6256 in another way.
Actions