Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is Header malformed #275

Open
kzkelley opened this issue Dec 21, 2023 · 0 comments
Open

Is Header malformed #275

kzkelley opened this issue Dec 21, 2023 · 0 comments

Comments

@kzkelley
Copy link

I have noticed when using gpxpy to parse and re-write a gpx file that the new file has what appears to me to be a malformed header.
The only reason I bring it up is because it thru an error when I tried to use the generated file in a different script.
I received this error:
utf-8' codec can't decode byte 0xa0 in position 266117: invalid start byte
When I edited the header by moving the version='1.1' and creator="gpx.py -- https://github.com/tkrajina/gpxpy" to the front of the xml tag like <gpx version='1.1' creator="gpx.py -- https://github.com/tkrajina/gpxpy" to the front of the xml
The issue went away.

Header in the original file:

Header in the generated file:

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

No branches or pull requests

1 participant