]> git.openstreetmap.org Git - rails.git/blobdiff - lib/osm.rb
Make the box outline the same colour as the ways and points drawn
[rails.git] / lib / osm.rb
index f6646503d0e37e0d68e04efbaf01755be4c6195e..f372979a8d784bf99a49b14746e1753ee7b74927 100644 (file)
@@ -240,7 +240,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
@@ -326,7 +326,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'] = GENERATOR