]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api_controller.rb
Refactor the GPX upload to try and avoid the import daemon loading traces
[rails.git] / app / controllers / api_controller.rb
index 6b36b41ae947e25fdfe035f5377e2cc652e0d3a5..7a0a45fc8a333f346499ba8c4764c91a1a6950d6 100644 (file)
@@ -54,7 +54,7 @@ class ApiController < ApplicationController
     points = Tracepoint.find_by_area(min_lat, min_lon, max_lat, max_lon, :offset => offset, :limit => TRACEPOINTS_PER_PAGE, :order => "timestamp DESC" )
 
     doc = XML::Document.new
-    doc.encoding = 'UTF-8'
+    doc.encoding = XML::Encoding::UTF_8
     root = XML::Node.new 'gpx'
     root['version'] = '1.0'
     root['creator'] = 'OpenStreetMap.org'