[OSM-dev] [API] What characters to escape in tag keys/values?

Chris Browet cbro at semperpax.com
Sat Dec 31 03:03:35 GMT 2011


On Fri, Dec 30, 2011 at 17:01, Chris Browet <cbro at semperpax.com> wrote:

>
>
> On Fri, Dec 30, 2011 at 16:50, Frederik Ramm <frederik at remote.org> wrote:
>
>> Hi,
>>
>>
>> On 12/30/11 16:19, Chris Browet wrote:
>>
>>> Here is an osmchange showing th issue:
>>> http://dl.dropbox.com/u/**7264433/test.osc<http://dl.dropbox.com/u/7264433/test.osc>
>>>
>>
>> I can confirm this (trying to upload using a perl script against
>> api06.dev). "500 Internal Server Error" with the percent sign, and
>> uploading fine without.
>>
>> Bye
>> Frederik
>>
>> Thanks Frederik.
>
> Ticket http://trac.openstreetmap.org/ticket/4166 created for this.
>
> - Chris -
>

For reference, this is due to not setting the "Content-Type" to "text/xml".
According to Matt, Rails assumes percent as an escape character otherwise.

Sorry for the noise
- Chris -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20111231/174ec709/attachment.html>


More information about the dev mailing list