Skip to content

Commit 2bfe84f

Browse files
authored
Merge pull request #26 from olieidel/main
Use UTF-8 encoding when generating XML
2 parents 29093e5 + 19538c5 commit 2bfe84f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)