Redmineでphpをリポジトリ表示すると文字化けする を参考にして修正。 vi /var/lib/redmine/lib/redmine/syntax_highlighting.rb 38 class << self 39 # Highlights +text+ as the content of +filename+ 40 # Should not return line numbers nor outer pre tag 41 def highlight_by_filename(text, filename) 42 language = ::CodeRay::FileType[filename] + 43 language = :java_script if language == 'php' || language == :php 44 language ? ::CodeRay.