lib/java-properties.rb in java-properties-0.1.0 vs lib/java-properties.rb in java-properties-0.1.1

- old
+ new

@@ -28,10 +28,12 @@ # Loads and parses a Java properties file # @see Parsing::Parser # @param path [String] # @return [Properties] def self.load(path) - parse(File.read(path)) + File.open(path, "r:bom|utf-8") do |f| + parse(f.read) + end end # Generates a Java properties file # @see Generating::Generator # @param hash [Hash] \ No newline at end of file