Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Uploading GPX file fails with "Generic XML parse error" when the file contains letter ä #2522

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 2 comments

Comments

@openstreetmap-trac
Copy link

Reporter: Eero
[Submitted to the original trac issue database at 2.47pm, Sunday, 29th November 2009]

I didn't test it, but maybe it also fails with other characters that are not part of English alphabets. There should be a GPX file made by Nokia Sports Tracker as an attachment.

@openstreetmap-trac
Copy link
Author

Author: TomH
[Added to the original trac issue at 12.33pm, Monday, 1st March 2010]

To be fair that GPX file does lie - it claims to be UTF-8 but contains ISO-8859-1 characters.

@openstreetmap-trac
Copy link
Author

Author: TomH
[Added to the original trac issue at 12.38pm, Monday, 1st March 2010]

Indeed, running the file through "iconv -f iso-8859-1 -t utf-8" to fix it up makes it import correctly, as does editing it and changing "UTF-8" to "iso-8859-1" in the first line.

The error is coming from libxml so there isn't much we can easily do to improve it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant