lib/smilodon.rb in smilodon-0.3.3 vs lib/smilodon.rb in smilodon-0.3.4

- old
+ new

@@ -120,9 +120,10 @@ # @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) + + Iconv.conv 'UTF-8', 'ISO-8859-1', File.read(path(file)) end end end