We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f773a48 commit 082eb51Copy full SHA for 082eb51
lib/data_file.rb
@@ -16,7 +16,7 @@ def scan(source = nil)
16
latest_judgment_date = Infraction.order('judgment_date DESC').first.judgment_date rescue Date.new
17
18
log 'Importing infractions'
19
- Nokogiri::XML(content(source), nil, 'utf-8').xpath('//contrevenant').each do |xml|
+ Nokogiri::XML(content(source), nil, 'ISO-8859-1').xpath('//contrevenant').each do |xml|
20
Establishment.transaction do
21
owner = Owner.find_or_create_by_name get_name(xml, 'proprietaire')
22
type = Type.find_or_create_by_name xml.at_xpath('categorie').text.strip
0 commit comments