Skip to content

Commit 082eb51

Browse files
author
James McKinney
committed
change encoding
1 parent f773a48 commit 082eb51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/data_file.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def scan(source = nil)
1616
latest_judgment_date = Infraction.order('judgment_date DESC').first.judgment_date rescue Date.new
1717

1818
log 'Importing infractions'
19-
Nokogiri::XML(content(source), nil, 'utf-8').xpath('//contrevenant').each do |xml|
19+
Nokogiri::XML(content(source), nil, 'ISO-8859-1').xpath('//contrevenant').each do |xml|
2020
Establishment.transaction do
2121
owner = Owner.find_or_create_by_name get_name(xml, 'proprietaire')
2222
type = Type.find_or_create_by_name xml.at_xpath('categorie').text.strip

0 commit comments

Comments
 (0)