X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/2005709c5a9097f303f3bf8ce9321dcb60e552b3..07c1cd6b983d5138c1a217a716248b9a1010b9e3:/lib/osm.rb diff --git a/lib/osm.rb b/lib/osm.rb index 9c271607d..365ddf68e 100644 --- a/lib/osm.rb +++ b/lib/osm.rb @@ -101,7 +101,7 @@ module OSM class GeoRSS def initialize(feed_title='OpenStreetMap GPS Traces', feed_description='OpenStreetMap GPS Traces', feed_url='http://www.openstreetmap.org/traces/') @doc = XML::Document.new - @doc.encoding = 'UTF-8' + @doc.encoding = XML::Encoding::UTF_8 rss = XML::Node.new 'rss' @doc.root = rss @@ -187,7 +187,7 @@ module OSM class API def get_xml_doc doc = XML::Document.new - doc.encoding = 'UTF-8' + doc.encoding = XML::Encoding::UTF_8 root = XML::Node.new 'osm' root['version'] = API_VERSION root['generator'] = 'OpenStreetMap server'