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

Fix network save_to_string() encoding issue #946

Merged
merged 3 commits into from
Feb 12, 2025

Conversation

geofjamg
Copy link
Member

@geofjamg geofjamg commented Feb 12, 2025

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Does this PR already have an issue describing the problem?

No

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

Encoding is not correctlty managed when using save_to_string. On Windows default one is CP1252 instead of UTF-8 which does not support some characters.

What is the new behavior (if this is a feature change)?
We explictely use UTF-8 encoding.

Does this PR introduce a breaking change or deprecate an API?

  • Yes
  • No

If yes, please check if the following requirements are fulfilled

  • The Breaking Change or Deprecated label has been added
  • The migration steps are described in the following section

What changes might users need to make in their application due to this PR? (migration steps)

Other information:

Signed-off-by: Geoffroy Jamgotchian <geoffroy.jamgotchian@rte-france.com>
Signed-off-by: Geoffroy Jamgotchian <geoffroy.jamgotchian@rte-france.com>
@geofjamg geofjamg changed the title [WIP] Fix network save_to_string() encoding issue Fix network save_to_string() encoding issue Feb 12, 2025
@geofjamg geofjamg added the bug Something isn't working label Feb 12, 2025
@geofjamg geofjamg requested a review from HugoKulesza February 12, 2025 10:49
Copy link

Copy link

@HugoKulesza HugoKulesza merged commit 4abe8fd into main Feb 12, 2025
10 checks passed
@HugoKulesza HugoKulesza deleted the save_to_string_encoding_issue branch February 12, 2025 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants