lib/amazon/ecs.rb in amazon-ecs-2.2.3 vs lib/amazon/ecs.rb in amazon-ecs-2.2.4
- old
+ new
@@ -30,11 +30,11 @@
module Amazon
class RequestError < StandardError; end
class Ecs
- VERSION = '2.2.3'
+ VERSION = '2.2.4'
SERVICE_URLS = {
:us => 'http://ecs.amazonaws.com/onca/xml',
:uk => 'http://ecs.amazonaws.co.uk/onca/xml',
:ca => 'http://ecs.amazonaws.ca/onca/xml',
@@ -139,10 +139,10 @@
# Response object returned after a REST call to Amazon service.
class Response
# XML input is in string format
def initialize(xml)
- @doc = Nokogiri::XML(xml)
+ @doc = Nokogiri::XML(xml, nil, 'UTF-8')
@doc.remove_namespaces!
# @doc.xpath("//*").each { |elem| elem.name = elem.name.downcase }
# @doc.xpath("//@*").each { |att| att.name = att.name.downcase }
end