[OpenStreetMap] #4127: non-ascii UTF-8 symbols in GPX traces names are converted to '_' on upload
OpenStreetMap
trac at openstreetmap.org
Sun Dec 11 18:53:22 GMT 2011
#4127: non-ascii UTF-8 symbols in GPX traces names are converted to '_' on upload
---------------------------------------------+------------------------------
Reporter: one_half_3544 | Owner: rails-dev@…
Type: defect | Status: new
Priority: minor | Milestone:
Component: website | Version:
Keywords: trace, gpx, utf-8, localization |
---------------------------------------------+------------------------------
Comment(by one_half_3544):
Oh, indeed
{{{
fb1467a9 (Steve Coast 2006-11-27 19:52:18 +0000 10)
@params['trace']['name'] =
@params['trace']['gpx_file'].original_filename.gsub(/[^a-zA-Z0-9.]/, '_')
# This makes sure filenames are sane
}}}
I'll try to contact him. Hope he remembers the reason of this.
--
Ticket URL: <https://trac.openstreetmap.org/ticket/4127#comment:6>
OpenStreetMap <http://www.openstreetmap.org/>
OpenStreetMap is a free editable map of the whole world
More information about the rails-dev
mailing list