Skip to content

Commit 19538c5

Browse files
committed
use utf-8 encoding for xml
1 parent 29093e5 commit 19538c5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/secretariat/invoice.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def to_xml(version: 1, validate: true)
167167
raise ValidationError.new("Invoice is invalid", errors)
168168
end
169169

170-
builder = Nokogiri::XML::Builder.new do |xml|
170+
builder = Nokogiri::XML::Builder.new(encoding: "UTF-8") do |xml|
171171

172172
root = by_version(version, 'CrossIndustryDocument', 'CrossIndustryInvoice')
173173

0 commit comments

Comments
 (0)