Set encoding when writing out samples (#3046)

This commit is contained in:
Arfon Smith
2016-06-13 13:11:04 -06:00
committed by GitHub
parent c471990aa3
commit f28573420e

View File

@@ -21,7 +21,7 @@ module Linguist
def self.cache
@cache ||= begin
serializer = defined?(Yajl) ? Yajl : YAML
serializer.load(File.read(PATH))
serializer.load(File.read(PATH, encoding: 'utf-8'))
end
end