lib/smilodon.rb in smilodon-0.3.8 vs lib/smilodon.rb in smilodon-0.3.9

- old
+ new

@@ -120,9 +120,9 @@ # @raise [DataFileNotConfigured] Raises an exception when the file is not configured. # @raise [MissingDataFile] Raises an exception when the configured file is missing. def read(file) raise DataFileNotConfigured unless file raise MissingDataFile unless File.exist?(path(file)) - File.read path(file) + File.open(path(file), 'r:UTF-8').read end end end