Skip to content

Deprecate encodings other than UTF-8 when serializing#566

Merged
Wuestengecko merged 1 commit into
masterfrom
exs-encoding
Jul 21, 2025
Merged

Deprecate encodings other than UTF-8 when serializing#566
Wuestengecko merged 1 commit into
masterfrom
exs-encoding

Conversation

@Wuestengecko

Copy link
Copy Markdown
Member

So far, there has been a slight difference in features between the pure-Python and the Rust version of the XML serializer, in that the pure-Python one accepted arbitrary encodings. However, this feature is not exposed through the save() methods on MelodyLoader and MelodyModel. Capella also uses UTF-8 for all its file read/write operations, which makes supporting different encodings unnecessary. Therefore this commit deprecates passing encodings into exs altogether. Note that explicitly passing in "utf-8" is also included in this deprecation, meaning that the encoding and errors arguments will eventually be dropped completely.

So far, there has been a slight difference in features between the
pure-Python and the Rust version of the XML serializer, in that the
pure-Python one accepted arbitrary encodings. However, this feature is
not exposed through the `save()` methods on MelodyLoader and
MelodyModel. Capella also uses UTF-8 for all its file read/write
operations, which makes supporting different encodings unnecessary.
Therefore this commit deprecates passing encodings into `exs`
altogether. Note that explicitly passing in "utf-8" is also included in
this deprecation, meaning that the `encoding` and `errors` arguments
will eventually be dropped completely.
@Wuestengecko
Wuestengecko merged commit a0b5521 into master Jul 21, 2025
20 checks passed
@Wuestengecko
Wuestengecko deleted the exs-encoding branch July 21, 2025 17:28
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.

1 participant