Changed 'file' flag in charset method, see Issue #167.

This commit is contained in:
ethicalhack3r
2013-04-15 13:54:27 +02:00
parent 698197248e
commit da4ee57e58

View File

@@ -76,7 +76,7 @@ class File
#
# @return [ String ] The charset of the file
def self.charset(file_path)
%x{file -i #{file_path}}[%r{charset=([^\n]+)\n}, 1]
%x{file --mime #{file_path}}[%r{charset=([^\n]+)\n}, 1]
end
end