Skip to content

Conversation

fabianschlebusch
Copy link
Contributor

Python encodes with cp1252 per default on Windows, resulting in invalid xml files. As the xml header always states that utf-8 is used, I actually enforced it when opening the file for writing. This fixes problems with parsing the written xml files under Windows operating systems.

@fabianschlebusch fabianschlebusch changed the title Force python to use utf-8 encoding on all operating systems Force xml writer to use utf-8 encoding on all operating systems Jan 29, 2021
Copy link
Contributor

@mpsonntag mpsonntag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks for the PR.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 80.765% when pulling 8b40334 on fabianschlebusch:master into 89b7fde on G-Node:master.

@jgrewe jgrewe merged commit 342b273 into G-Node:master Feb 2, 2021
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

Successfully merging this pull request may close these issues.

4 participants