lib/bolognese/datacite_utils.rb in bolognese-0.8.13 vs lib/bolognese/datacite_utils.rb in bolognese-0.9

- old
+ new

@@ -17,10 +17,10 @@ def datacite datacite_xml end def datacite_errors - @datacite_errors ||= schema.validate(Nokogiri::XML(datacite)).map { |error| error.to_s } + @datacite_errors ||= schema.validate(Nokogiri::XML(datacite, nil, 'UTF-8')).map { |error| error.to_s } end def insert_work(xml) insert_identifier(xml) insert_creators(xml)