Skip to content

Commit

Permalink
force encoding utf-8 in products
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagovsk committed Oct 6, 2017
1 parent dc965a5 commit cc8eae7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/br_invoices_pdf/cfe/parser/products_data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def products_params(node_products)

def product_by(element)
FIELDS
.map { |(key, field)| [key, node_locate(element, field)] }
.map { |(key, field)| [key, node_locate(element, field).force_encoding('UTF-8')] }
.to_h
end
private_class_method :product_by
Expand Down

0 comments on commit cc8eae7

Please sign in to comment.