Redmine considers non ASCII and UTF-16 text files as binary in SCM
|Assignee:||Toshi MARUYAMA||% Done:|
If source file contains less than 30% of ascii symbols - redmine threats it as binary.
It's affected when browsing repository:
(redmine just starts downloading, not showing source file).
The problem is that redmine relies on string method http://apidock.com/ruby/String/is_binary_data%3F
I understand this is ruby problem, but redmine could do some more checks - at least check for BOM marks.
more information here:
scm: filesystem: add test of no extension file whose content is only ASCII can be showing (#6256).
scm: mercurial: add test of binary file should be force download in functional test (#6256).