Skip to content

Commit ccd63f6

Browse files
committed
use utf-8 encoding option for nokogiri to allow special characters
1 parent 64d5b2a commit ccd63f6

13 files changed

+888
-346
lines changed

lib/mds/services/base.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def build_response_instance(xml_response)
4141
end
4242

4343
def xml_builder
44-
Nokogiri::XML::Builder.new do |xml|
44+
Nokogiri::XML::Builder.new(:encoding => 'UTF-8') do |xml|
4545
xml.send(self.class.xml_root, 'xml:lang' => 'en-US') do
4646
xml.ClientCode @client_code
4747
xml.ClientSignature @client_signature

spec/cassettes/full_inventory_spec.yml

+388-143
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/cassettes/mds_integration_add_shipment.yml

+56-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)