parent
712d8d617d
commit
c6d5a913f1
|
@ -269,7 +269,10 @@ module Jekyll
|
|||
def read_data_file(path)
|
||||
case File.extname(path).downcase
|
||||
when '.csv'
|
||||
CSV.read(path, :headers => true).map(&:to_hash)
|
||||
CSV.read(path, {
|
||||
:headers => true,
|
||||
:encoding => config['encoding']
|
||||
}).map(&:to_hash)
|
||||
else
|
||||
SafeYAML.load_file(path)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue